Return the real port of the container

This commit is contained in:
Juan Font Alonso 2022-11-04 00:05:01 +01:00
parent 5d7eae46f8
commit b2dc480f22

View File

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