ufairiya / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Binding to all interfaces? #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Do you have any plans to allow/restrict binding to specific interface on a
multi-homed system? Right now the bind uses INADDR_ANY which would listen
on all interfaces. It would be an easy local patch, but may be nice to have
it official.

Just curious.

Thanks.

Original issue reported on code.google.com by PKuo...@gmail.com on 4 Jun 2009 at 10:06

GoogleCodeExporter commented 9 years ago
You can bind to a specific interface:
mg_set_option(ctx, "ports", "1.2.3.4:443s");

Original comment by valenok on 4 Jun 2009 at 10:11

GoogleCodeExporter commented 9 years ago
oh, thank you!

Original comment by PKuo...@gmail.com on 5 Jun 2009 at 3:46