aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2025-01-20 17:30:47 +0100
committerGravatar Christian Hesse <mail@eworm.de>2025-01-20 17:30:47 +0100
commit8225c6e6fdc42f96440c961f0d43e040dd9cf571 (patch)
tree1fdc7d81c3430416841a5847c0f2d5888c5bc04b
parent718e329d634b82955d332462336d5abdc9c301ef (diff)
downloadpacredir-main.tar.gz
pacredir-main.tar.zst
use define from netinet/in.hHEADnextmain
-rw-r--r--pacredir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacredir.c b/pacredir.c
index cefc087..9ac7b99 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -776,7 +776,7 @@ int main(int argc, char ** argv) {
/* prepare struct to make microhttpd listen on localhost only */
address.sin_family = AF_INET;
address.sin_port = htons(PORT_PACREDIR);
- address.sin_addr.s_addr = htonl(0x7f000001);
+ address.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
/* start http server */
if ((mhd = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION | MHD_USE_TCP_FASTOPEN, PORT_PACREDIR,