pull/8492/merge
Valentin Alexeev 2023-07-01 15:58:30 +03:00 committed by GitHub
commit 5cdef064bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -113,6 +113,13 @@ type Server struct {
// field at zero unless you know what you are doing.
Port uint16
// AdvertiseTags specifies groups that this embedded server wants to join, for
// purposes of ACL enforcement. These can be referenced from the ACL
// security policy. Note that advertising a tag doesn't guarantee that
// the control server will allow you to take on the rights for that
// tag.
AdvertiseTags []string
getCertForTesting func(*tls.ClientHelloInfo) (*tls.Certificate, error)
initOnce sync.Once
@ -567,6 +574,7 @@ func (s *Server) start() (reterr error) {
prefs.Hostname = s.hostname
prefs.WantRunning = true
prefs.ControlURL = s.ControlURL
prefs.AdvertiseTags = s.AdvertiseTags
authKey := s.getAuthKey()
err = lb.Start(ipn.Options{
UpdatePrefs: prefs,