hyperd icon indicating copy to clipboard operation
hyperd copied to clipboard

Specify host IP for host ports

Open phillipp opened this issue 10 years ago • 2 comments

Hi, I'm just discovering hyper and I noticed that there is no way to specify a host IP for a host port binding. We are using multiple public IPs on the host machine and want to assign ports to them. I can surely just change the iptables rules in the HYPER net chain, but thats a bit tedious.

I would propose to either a) add an extra "hostIP" value for the config or b) prepend the "hostPort" with the IP. The first one is surely easier to parse. I would add this myself and open a pull request if that's welcome. Do you agree this is useful and that option a) is a good implementation?

phillipp avatar Sep 02 '15 15:09 phillipp

@phillipp Thanks for your report, we add it to our todo list, will support configure public ip asap. :)

gao-feng avatar Sep 06 '15 03:09 gao-feng

@phillipp Look forward to your pr,I prefer a) too.

gao-feng avatar Sep 06 '15 06:09 gao-feng