Commit bdbec53
committed
ddns-scripts: Add tb.netassist.ua as service
This adds support for tb.nettassist.ua as requested by [1].
The service seems to have a somewhat broken API in that it returns `OK!`
for the first update, but will return `FAIL!` for any consecutive update
with the same IP.
For example:
```
curl "https://tb.netassist.ua/autochangeip.php?l=[USERNAME]&p=[PASSWORD]&ip=1.2.3.4"
OK!
The IP will be updated in 60 seconds.%
curl "https://tb.netassist.ua/autochangeip.php?l=[USERNAME]&p=[PASSWORD]&ip=1.2.3.4"
FAIL!
IPv4 address you entered "<b>1.2.3.4</b>" is already registered in our
system for another customer. Try another one. Sorry.%
```
On the other hand, it doesn't feel right to add `FAIL!` as expected
response for an successful update.
If anything, the service provider should be contacted and asked to fix
the API.
[1]: #25861
Signed-off-by: Karol Babioch <[email protected]>1 parent 7c9b249 commit bdbec53
3 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
0 commit comments