silicon icon indicating copy to clipboard operation
silicon copied to clipboard

how to bind 0.0.0.0?

Open gggin opened this issue 9 years ago • 1 comments

gggin avatar Mar 15 '17 07:03 gggin

@gggin If you use the microhttpd backend (mhd_), you are already bound to 0.0.0.0. However if you want to bind it to a specific IP address rather than 0.0.0.0, I think microhttpd is lack of this ability. Usually API services run behind a reverse proxy, so this won't be a problem.

如果用的时 microhttpd 做后端的话,已经是在监听 0.0.0.0 了。但是如果想监听除了0.0.0.0 之外的一个指定的 IP ,貌似 microhttpd 没给提供这个能力。通常 API 服务会在反向代理后面运行,所以不能绑定指定 IP 也没什么大不了的。

tedli avatar Jun 27 '17 06:06 tedli