Skip to content

Commit 0f87e94

Browse files
committed
const
1 parent 0c92856 commit 0f87e94

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tailnet/conn.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ func NewConn(options *Options) (conn *Conn, err error) {
359359
// connect to a specific known workspace.
360360
const IsCoderConnectEnabledFQDNString = "is--coder--connect--enabled--right--now.coder."
361361

362+
var IsCoderConnectEnabledFQDN, _ = dnsname.ToFQDN(IsCoderConnectEnabledFQDNString)
363+
362364
type ServicePrefix [6]byte
363365

364366
var (

tailnet/controllers.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,11 +1266,7 @@ func (t *tunnelUpdater) updateDNSNamesLocked() map[dnsname.FQDN][]netip.Addr {
12661266
}
12671267
}
12681268
}
1269-
fqdn, err := dnsname.ToFQDN(IsCoderConnectEnabledFQDNString)
1270-
if err != nil {
1271-
panic(fmt.Sprintf("failed to create static FQDN: %v", err))
1272-
}
1273-
names[fqdn] = []netip.Addr{tsaddr.CoderServiceIPv6()}
1269+
names[IsCoderConnectEnabledFQDN] = []netip.Addr{tsaddr.CoderServiceIPv6()}
12741270
return names
12751271
}
12761272

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy