providers/docker: support for UDP forwarded ports [GH-3886]

This commit is contained in:
Mitchell Hashimoto 2014-05-23 10:16:16 -07:00
parent 6efc5ef6ea
commit 6369d870d8
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,7 @@ IMPROVEMENTS:
- commands/box/add: `--capath` flag added for custom CA path. [GH-3848]
- commands/halt: Halt in reverse order of up, like destroy. [GH-3790]
- hosts/linux: Uses rdesktop to RDP into machines if available. [GH-3845]
- providers/docker: Support for UDP forwarded ports. [GH-3886]
- provisioners/salt: Works on Windows guests. [GH-3825]
BUG FIXES:

View File

@ -124,8 +124,9 @@ module VagrantPlugins
end
mappings.values.map do |fp|
# TODO: Support for the protocol argument
"#{fp[:host]}:#{fp[:guest]}"
protocol = ""
protocol = "/udp" if fp[:protocol].to_s == "udp"
"#{fp[:host]}:#{fp[:guest]}#{protocol}"
end.compact
end
end