View Issue Details

IDProjectCategoryView StatusLast Update
0001343libmicrohttpdexternal APIpublic2008-09-10 22:49
Reporterfaye2040 Assigned Tolv-426__  
PriorityhighSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Summary0001343: Enhance MHD_start_daemon to support binding on specific interface or IP address
DescriptionSince I want to use SSL feature with libmicrohttpd,
I chose stunnel to be working as front-end of HTTPS.
However, for security issue, I prefer libmicrohttpd to
listen on localhost network device only.

Here I manually modified daemon.c (within MHD_start_daemon)
for IPv4 binding:
  if ((options & MHD_USE_IPv6) != 0)
    {
      /* ... */
    }
  else
    {
      memset (&servaddr4, 0, sizeof (struct sockaddr_in));
      servaddr4.sin_family = AF_INET;
      servaddr4.sin_port = htons (port);
      servaddr4.sin_addr.s_addr = htonl(INADDR_LOOPBACK); /* Here */
      servaddr = (struct sockaddr *) &servaddr4;
      addrlen = sizeof (struct sockaddr_in);
    }
Additional InformationSo, how about enhance MHD_start_daemon (for both IPv4 & IPv6)
to bind specific network interface or address?
TagsNo tags attached.

Activities

Christian Grothoff

2008-05-26 18:09

manager   ~0003439

Could be done. I'll put it on my list ;-)

Christian Grothoff

2008-08-24 15:23

manager   ~0003663

Option was added by LV-426, I added the docs, so this is now done.

Issue History

Date Modified Username Field Change
2008-05-26 00:29 faye2040 New Issue
2008-05-26 18:07 Christian Grothoff Severity minor => feature
2008-05-26 18:09 Christian Grothoff Note Added: 0003439
2008-06-15 09:31 Christian Grothoff Status new => assigned
2008-06-15 09:31 Christian Grothoff Assigned To => Christian Grothoff
2008-06-26 01:50 Christian Grothoff Priority normal => high
2008-08-10 16:25 Christian Grothoff Assigned To Christian Grothoff => lv-426__
2008-08-24 15:23 Christian Grothoff Note Added: 0003663
2008-08-24 15:23 Christian Grothoff Status assigned => resolved
2008-08-24 15:23 Christian Grothoff Resolution open => fixed
2008-09-10 22:49 Christian Grothoff Status resolved => closed
2013-05-06 12:52 Christian Grothoff Category API => libmicrohttpd API
2024-01-21 13:24 Christian Grothoff Category libmicrohttpd API => external API