mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
Return the real port of the container
This commit is contained in:
parent
73c84d4f6a
commit
0a47d694be
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue