Forward ports can specify host/guest IP to bind to [GH-1121]

This commit is contained in:
Mitchell Hashimoto 2013-07-10 20:30:15 -07:00
parent dd6dd4929e
commit fd644c5105
3 changed files with 5 additions and 4 deletions

View File

@ -12,6 +12,7 @@ IMPROVEMENTS:
box exists only backed by one provider. [GH-1032]
- `vagrant destroy` returns exit status 1 if any of the confirmations
are declined. [GH-923]
- Forwarded ports can specify a host IP and guest IP to bind to. [GH-1121]
BUG FIXES:

View File

@ -142,9 +142,9 @@ module VagrantPlugins
ports.each do |options|
pf_builder = [options[:name],
options[:protocol] || "tcp",
"",
options[:hostip] || "",
options[:hostport],
"",
options[:guestip] || "",
options[:guestport]]
args.concat(["--natpf#{options[:adapter] || 1}",

View File

@ -142,9 +142,9 @@ module VagrantPlugins
ports.each do |options|
pf_builder = [options[:name],
options[:protocol] || "tcp",
"",
options[:hostip] || "",
options[:hostport],
"",
options[:guestip] || "",
options[:guestport]]
args.concat(["--natpf#{options[:adapter] || 1}",