]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
socket-proxy: allow localhost addresses 17066/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 Sep 2020 12:52:47 +0000 (14:52 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 Sep 2020 14:45:39 +0000 (16:45 +0200)
With this change, only manager_connect() in timesync.d uses AI_ADDRCONFIG. There
we are connecting to a remove server, so the flag is appropriate.

src/socket-proxy/socket-proxyd.c

index 50f5b9c9c536a21ffc83508761e3b633b38401be..60420140696b4cba87be588336e06427eb5c0d61 100644 (file)
@@ -417,7 +417,6 @@ static int resolve_remote(Connection *c) {
         static const struct addrinfo hints = {
                 .ai_family = AF_UNSPEC,
                 .ai_socktype = SOCK_STREAM,
-                .ai_flags = AI_ADDRCONFIG
         };
 
         const char *node, *service;