mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #542 from nihilifer/port_forwarding_custom_adapter
Allow to forward ports from a custom adapter
This commit is contained in:
commit
6a4563b807
@ -615,6 +615,8 @@ you want the forwarded port to be accessible from outside the Vagrant
|
||||
host. In this case you should also set the `host_ip` option to `'*'`
|
||||
since it defaults to `'localhost'`.
|
||||
|
||||
You can also provide a custom adapter to forward from by 'adapter' option. Default is 'eth0'.
|
||||
|
||||
## Synced Folders
|
||||
|
||||
vagrant-libvirt supports bidirectional synced folders via nfs or 9p and
|
||||
|
@ -38,7 +38,7 @@ module VagrantPlugins
|
||||
def forward_ports
|
||||
@env[:forwarded_ports].each do |fp|
|
||||
message_attributes = {
|
||||
adapter: 'eth0',
|
||||
adapter: fp[:adapter] || 'eth0',
|
||||
guest_port: fp[:guest],
|
||||
host_port: fp[:host]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user