Return the real port of the container

This commit is contained in:
Juan Font Alonso authored and Kristoffer Dalby committed 2022-11-14 08:47:02 +01:00
1 parent 73c84d4f6a
commit 0a47d694be
1 file changed
+1 -3
+1 -3
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 {