taskserver
taskserver copied to clipboard
[TD-123] Taskd not syncing when "127.0.0.1 <servername>" is set in /etc/host
Sebastian Sonne on 2016-06-04T22:45:36Z says:
For something on my webserver, I've set "127.0.0.1
Migrated metadata:
Created: 2016-06-04T22:45:36Z
Modified: 2016-06-05T08:25:44Z
Paul Beckingham on 2016-06-04T23:23:45Z says:
What was the CN set to in the certs you created?
Sebastian Sonne on 2016-06-05T08:25:44Z says:
The name of the server (that is, what
I tried all of my devices IP addresses, of note ::1
and 127.0.0.1
, on other devices 192.168.x.x
and fe80*
(which are the device's local network addresses) did not work, and only my public IPv6 address worked.
So it appears that it only listens on the device's public address. This has to do with setting the server
setting in taskserver's config
file to the server name, which likely queries the IP address that is found. This was fixed to allow any IPv4 connection with 0.0.0.0
instead. Oddly I was able to allow any ip address (at least with my local clients) by setting the server
config setting to server=:::53589
, though that may be due to some IPv4 to IPv6 address conversion/translation.
Updating the doc to explain that the server
setting is about IP address, and not server name, could help explain to people the purpose of ip, since setting a bind address is common in other server documentation.
So I would also say that this is not a bug, but configuration problem. Allowing people to bind to multiple addresses could be a nice feature though, ex: server=127.0.0.1:53589,192.168.1.52:53589,ServerName:53589