mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-29 07:13:18 -05:00
Return the real port of the container
This commit is contained in:
parent
5d7eae46f8
commit
b2dc480f22
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user