mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-20 05:31:40 +00:00
tsnet: support TS_AUTH_KEY variant too
Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
d2fd101eb4
commit
d39a5e4417
@ -415,7 +415,10 @@ func (s *Server) getAuthKey() string {
|
|||||||
if v := s.AuthKey; v != "" {
|
if v := s.AuthKey; v != "" {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
return os.Getenv("TS_AUTHKEY")
|
if v := os.Getenv("TS_AUTHKEY"); v != "" {
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
return os.Getenv("TS_AUTH_KEY")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) start() (reterr error) {
|
func (s *Server) start() (reterr error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user