regmibijay/strato-dyndns

-v4 or -v6 flag not working for me

Closed this issue · 2 comments

Hello,
I downloaded the latest version today and got it working if I manualy add a ip address with the -ip flag.
But I want to use the -v4 flag to automate the process.

When I use the -v4 flag I get the following error:
"Could not process your parameters, reason: 'ip_addresses'"

I get the same error with the -v6 flag but I don't have a external ipv6 address so that could be a legit error.

This is the comand I use:
sudo strato_dundns strato -c cozy.json -v4

This is the cozy-json file (obv I use a fake domain and password here)
{ "username": "mycozysite.net", "password": "cozypassword1337", "domain": "mycozysite.net" }
Did I miss something on how the -v4 flag works?

Hi, I could replicate your bug with your specified parameters. As current workaround you can specify your cozy.json as

{ 
    "username": "mycozysite.net",
    "password": "cozypassword1337",
    "domain": "mycozysite.net",
    "ip_addresses": []
}

Thank you for reporting this, I have some other improvements planned for this package and will find time to fix it soon. Cheers!

I implemented fix for this bug, now you can upgrade to 2.3.3 and then you would not need to modify your json file and it will work as intended. TY for reporting again!