"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/provider/ecs/config.go" between
traefik-v2.3.2.src.tar.gz and traefik-v2.3.3.src.tar.gz

About: Traefik is a cloud native edge router, a reverse proxy and load balancer for HTTP and TCP-based applications.

config.go  (traefik-v2.3.2.src):config.go  (traefik-v2.3.3.src)
skipping to change at line 310 skipping to change at line 310
return ip, port, nil return ip, port, nil
} }
func (p Provider) getIPAddress(instance ecsInstance) string { func (p Provider) getIPAddress(instance ecsInstance) string {
return instance.machine.privateIP return instance.machine.privateIP
} }
func getPort(instance ecsInstance, serverPort string) string { func getPort(instance ecsInstance, serverPort string) string {
if len(serverPort) > 0 { if len(serverPort) > 0 {
for _, port := range instance.machine.ports {
containerPort := strconv.FormatInt(port.containerPort, 10
)
if serverPort == containerPort {
return strconv.FormatInt(port.hostPort, 10)
}
}
return serverPort return serverPort
} }
var ports []nat.Port var ports []nat.Port
for _, port := range instance.machine.ports { for _, port := range instance.machine.ports {
natPort, err := nat.NewPort(port.protocol, strconv.FormatInt(port .hostPort, 10)) natPort, err := nat.NewPort(port.protocol, strconv.FormatInt(port .hostPort, 10))
if err != nil { if err != nil {
continue continue
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)