aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-06-04 14:44:13 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-06-07 09:59:03 +0200
commit2f0b5d3dd961939ceddfecb97d388ece8fdb10cc (patch)
treed33ce2ab24993f3324051166f8796f441a881c93
parent6a3e91262b53d13f90383ff2604cff1bbebe7c40 (diff)
downloadpacredir-2f0b5d3dd961939ceddfecb97d388ece8fdb10cc.tar.gz
pacredir-2f0b5d3dd961939ceddfecb97d388ece8fdb10cc.tar.zst
simplify address handling
-rw-r--r--pacredir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacredir.c b/pacredir.c
index 82bba71..a3c01f4 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -785,7 +785,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);
- inet_pton(AF_INET, "127.0.0.1", &address.sin_addr);
+ address.sin_addr.s_addr = htonl(0x7f000001);
/* start http server */
if ((mhd = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION | MHD_USE_TCP_FASTOPEN, PORT_PACREDIR,