Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit49a2412

Browse files
fix(vpn): configure dns hosts with username (#16352)
Previously we were configuring using the display name of the user, whichmay contain spaces, special characters, and isn't unique. This wasalways supposed to be the username.
1 parent6ea5c6f commit49a2412

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎vpn/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (*client) NewConn(initCtx context.Context, serverURL *url.URL, token string
148148
updatesCtrl:=tailnet.NewTunnelAllWorkspaceUpdatesController(
149149
options.Logger,
150150
coordCtrl,
151-
tailnet.WithDNS(conn,me.Name),
151+
tailnet.WithDNS(conn,me.Username),
152152
tailnet.WithHandler(options.UpdateHandler),
153153
)
154154
controller.WorkspaceUpdatesCtrl=updatesCtrl

‎vpn/tun_darwin.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ package vpn
55
import (
66
"os"
77

8-
"cdr.dev/slog"
98
"github.com/tailscale/wireguard-go/tun"
109
"golang.org/x/sys/unix"
1110
"golang.org/x/xerrors"
11+
12+
"cdr.dev/slog"
1213
)
1314

1415
funcGetNetworkingStack(t*Tunnel,req*StartRequest,_ slog.Logger) (NetworkStack,error) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp