Return the real port of the container

This commit is contained in:
Juan Font Alonso 2022-11-04 00:05:01 +01:00 committed by Kristoffer Dalby
parent 73c84d4f6a
commit 0a47d694be

View file

@ -179,9 +179,7 @@ func (t *HeadscaleInContainer) GetIP() string {
} }
func (t *HeadscaleInContainer) GetPort() string { func (t *HeadscaleInContainer) GetPort() string {
portProto := fmt.Sprintf("%d/tcp", t.port) return fmt.Sprintf("%d", t.port)
return t.container.GetPort(portProto)
} }
func (t *HeadscaleInContainer) GetHealthEndpoint() string { func (t *HeadscaleInContainer) GetHealthEndpoint() string {