1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Just fixing gofmt issues in other people's code.

This commit is contained in:
Brian Olsen 2013-08-30 02:49:11 +02:00
parent 84431ec03c
commit 6756e786ac
2 changed files with 6 additions and 6 deletions

View file

@ -11,6 +11,7 @@ import (
"io" "io"
"io/ioutil" "io/ioutil"
"log" "log"
"net"
"os" "os"
"os/exec" "os/exec"
"path" "path"
@ -20,7 +21,6 @@ import (
"strings" "strings"
"syscall" "syscall"
"time" "time"
"net"
) )
type Container struct { type Container struct {
@ -827,10 +827,10 @@ func (container *Container) allocateNetwork() error {
portSpecs = container.Config.PortSpecs portSpecs = container.Config.PortSpecs
} else { } else {
for backend, frontend := range container.NetworkSettings.PortMapping["Tcp"] { for backend, frontend := range container.NetworkSettings.PortMapping["Tcp"] {
portSpecs = append(portSpecs, fmt.Sprintf("%s:%s/tcp",frontend, backend)) portSpecs = append(portSpecs, fmt.Sprintf("%s:%s/tcp", frontend, backend))
} }
for backend, frontend := range container.NetworkSettings.PortMapping["Udp"] { for backend, frontend := range container.NetworkSettings.PortMapping["Udp"] {
portSpecs = append(portSpecs, fmt.Sprintf("%s:%s/udp",frontend, backend)) portSpecs = append(portSpecs, fmt.Sprintf("%s:%s/udp", frontend, backend))
} }
} }