issue #98 suggests that connecting to localhost (which hostname may resolve to) will not work.
make the service example work
issue #98 requires connecting to localhost (which `hostname` may resolve to) will not work.
sync with README
+1 Helped me, $(hostname) didn't work.
I'm suggesting this instead:
ip -f inet addr show scope global | sed -n 's/.*inet \([^ /]*\)[ /].*/\1/p' | tail -n 1
This should list all the "global scope" IPV4 addresses (i.e. not 127.X.Y.Z, multicast, etc.); meaning that if someone doesn't have an address on eth0, it should work anyway. (That's the case with some high-end bare metal providers, where eth0 is part of a bond group, and doesn't hold an address by itself).