()
| 719 | } |
| 720 | |
| 721 | func (s *Server) getAuthKey() string { |
| 722 | if v := s.AuthKey; v != "" { |
| 723 | return v |
| 724 | } |
| 725 | if v := os.Getenv("TS_AUTHKEY"); v != "" { |
| 726 | return v |
| 727 | } |
| 728 | return os.Getenv("TS_AUTH_KEY") |
| 729 | } |
| 730 | |
| 731 | func (s *Server) getControlURL() string { |
| 732 | if v := s.ControlURL; v != "" { |