mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-28 20:45:12 +00:00
Fixed systemd warning and compile error
This commit is contained in:
parent
6f43791ebc
commit
8384da195d
@ -376,7 +376,7 @@ main(int argc, char **argv)
|
|||||||
char *device = NULL;
|
char *device = NULL;
|
||||||
char *pidfile = NULL;
|
char *pidfile = NULL;
|
||||||
|
|
||||||
int remote_forward_port;
|
int remote_forward_port = 0;
|
||||||
|
|
||||||
char *nameserv_host = NULL;
|
char *nameserv_host = NULL;
|
||||||
struct sockaddr_storage nameservaddr;
|
struct sockaddr_storage nameservaddr;
|
||||||
|
@ -561,7 +561,7 @@ main(int argc, char **argv)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
} else if (nb_fds == 1) {
|
} else if (nb_fds == 1) {
|
||||||
/* XXX: assume we get IPv4 socket */
|
/* XXX: assume we get IPv4 socket */
|
||||||
dns_fds.v4fd = SD_LISTEN_FDS_START;
|
server.dns_fds.v4fd = SD_LISTEN_FDS_START;
|
||||||
} else {
|
} else {
|
||||||
#endif
|
#endif
|
||||||
if ((server.addrfamily == AF_UNSPEC || server.addrfamily == AF_INET) &&
|
if ((server.addrfamily == AF_UNSPEC || server.addrfamily == AF_INET) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user