DnsConfig: don't use signed bytes when printing.
intToInetString(0x0101a8c0) returns "-64.-88.1.1" because Java integers are always signed. There is not a %u format specifier. Though the quads of an IP address literally are bytes, they can be left as an int to pass to String.format. This allows room for sign bits, so intToInetString(0x0101a8c0) returns "192.168.1.1" Signed-off-by: Denton Gentry <dgentry@tailscale.com>pull/51/head
parent
db31496a24
commit
63dba694af
Loading…
Reference in New Issue