diff options
author | Christian Hesse <mail@eworm.de> | 2021-06-04 14:44:13 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-06-07 09:59:03 +0200 |
commit | 2f0b5d3dd961939ceddfecb97d388ece8fdb10cc (patch) | |
tree | d33ce2ab24993f3324051166f8796f441a881c93 | |
parent | 6a3e91262b53d13f90383ff2604cff1bbebe7c40 (diff) | |
download | pacredir-2f0b5d3dd961939ceddfecb97d388ece8fdb10cc.tar.gz pacredir-2f0b5d3dd961939ceddfecb97d388ece8fdb10cc.tar.zst |
simplify address handling
-rw-r--r-- | pacredir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |