Forward ports can specify host/guest IP to bind to [GH-1121]
This commit is contained in:
parent
dd6dd4929e
commit
fd644c5105
|
@ -12,6 +12,7 @@ IMPROVEMENTS:
|
||||||
box exists only backed by one provider. [GH-1032]
|
box exists only backed by one provider. [GH-1032]
|
||||||
- `vagrant destroy` returns exit status 1 if any of the confirmations
|
- `vagrant destroy` returns exit status 1 if any of the confirmations
|
||||||
are declined. [GH-923]
|
are declined. [GH-923]
|
||||||
|
- Forwarded ports can specify a host IP and guest IP to bind to. [GH-1121]
|
||||||
|
|
||||||
BUG FIXES:
|
BUG FIXES:
|
||||||
|
|
||||||
|
|
|
@ -142,9 +142,9 @@ module VagrantPlugins
|
||||||
ports.each do |options|
|
ports.each do |options|
|
||||||
pf_builder = [options[:name],
|
pf_builder = [options[:name],
|
||||||
options[:protocol] || "tcp",
|
options[:protocol] || "tcp",
|
||||||
"",
|
options[:hostip] || "",
|
||||||
options[:hostport],
|
options[:hostport],
|
||||||
"",
|
options[:guestip] || "",
|
||||||
options[:guestport]]
|
options[:guestport]]
|
||||||
|
|
||||||
args.concat(["--natpf#{options[:adapter] || 1}",
|
args.concat(["--natpf#{options[:adapter] || 1}",
|
||||||
|
|
|
@ -142,9 +142,9 @@ module VagrantPlugins
|
||||||
ports.each do |options|
|
ports.each do |options|
|
||||||
pf_builder = [options[:name],
|
pf_builder = [options[:name],
|
||||||
options[:protocol] || "tcp",
|
options[:protocol] || "tcp",
|
||||||
"",
|
options[:hostip] || "",
|
||||||
options[:hostport],
|
options[:hostport],
|
||||||
"",
|
options[:guestip] || "",
|
||||||
options[:guestport]]
|
options[:guestport]]
|
||||||
|
|
||||||
args.concat(["--natpf#{options[:adapter] || 1}",
|
args.concat(["--natpf#{options[:adapter] || 1}",
|
||||||
|
|
Loading…
Reference in New Issue