1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-24 08:12:31 +02:00

fix comment typo

This commit is contained in:
Umputun 2021-06-26 12:12:47 -05:00
parent 0a2047fc74
commit 5dcb303615

View File

@ -193,7 +193,7 @@ func (d *Docker) parseContainerInfo(c containerInfo) (res []discovery.URLMapper)
}
// matchedPort gets port for route match, default the first exposed port
// if reproxy.N.label found reruns this port only if it is one of exposed by the container
// if reproxy.N.port label found, returns this port but only if it is one of exposed by the container
func (d *Docker) matchedPort(c containerInfo, n int) (port int, err error) {
port = c.Ports[0] // by default use the first exposed port