mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35:10 +00:00
Avoid port number double conversion to network byte order. (#281)
It is taken take of by `getaddrinfo`.
This commit is contained in:
parent
587631a15b
commit
c4f2e72baa
@ -63,7 +63,6 @@ void parse_read_tcpip_arg(struct text_object *obj, const char *arg, void *free_a
|
||||
if(rtd->port < 1 || rtd->port > 65535)
|
||||
CRIT_ERR(obj, free_at_crash, "read_tcp and read_udp need a port from 1 to 65535 as argument");
|
||||
|
||||
rtd->port = htons(rtd->port);
|
||||
obj->data.opaque = rtd;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user