Skip to content

Commit

Permalink
removed underscores from IP6 fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas2511 committed Oct 8, 2015
1 parent f63597d commit 92372fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docker-gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ type Event struct {

type Address struct {
IP string
IP6_LinkLocal string
IP6_Global string
IP6LinkLocal string
IP6Global string
Port string
HostPort string
Proto string
Expand All @@ -73,8 +73,8 @@ type RuntimeContainer struct {
Node SwarmNode
Labels map[string]string
IP string
IP6_LinkLocal string
IP6_Global string
IP6LinkLocal string
IP6Global string
}

type DockerImage struct {
Expand Down
8 changes: 4 additions & 4 deletions docker_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ func getContainers(client *docker.Client) ([]*RuntimeContainer, error) {
Node: SwarmNode{},
Labels: make(map[string]string),
IP: container.NetworkSettings.IPAddress,
IP6_LinkLocal: container.NetworkSettings.LinkLocalIPv6Address,
IP6_Global: container.NetworkSettings.GlobalIPv6Address,
IP6LinkLocal: container.NetworkSettings.LinkLocalIPv6Address,
IP6Global: container.NetworkSettings.GlobalIPv6Address,
}
for k, v := range container.NetworkSettings.Ports {
address := Address{
IP: container.NetworkSettings.IPAddress,
IP6_LinkLocal: container.NetworkSettings.LinkLocalIPv6Address,
IP6_Global: container.NetworkSettings.GlobalIPv6Address,
IP6LinkLocal: container.NetworkSettings.LinkLocalIPv6Address,
IP6Global: container.NetworkSettings.GlobalIPv6Address,
Port: k.Port(),
Proto: k.Proto(),
}
Expand Down

0 comments on commit 92372fe

Please sign in to comment.