cmd/tailscale: fix OSS build breaks

For build #cleanup

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
pull/137/head
Aaron Klotz 1 year ago
parent 338abf2cfb
commit 6a142b2f50

@ -143,7 +143,7 @@ func newBackend(dataDir string, jvm *jni.JVM, appCtx jni.Object, store *stateSto
} }
sys.Set(engine) sys.Set(engine)
b.logIDPublic = logID.Public().String() b.logIDPublic = logID.Public().String()
ns, err := netstack.Create(logf, sys.Tun.Get(), engine, sys.MagicSock.Get(), dialer, sys.DNSManager.Get()) ns, err := netstack.Create(logf, sys.Tun.Get(), engine, sys.MagicSock.Get(), dialer, sys.DNSManager.Get(), sys.ProxyMapper())
if err != nil { if err != nil {
return nil, fmt.Errorf("netstack.Create: %w", err) return nil, fmt.Errorf("netstack.Create: %w", err)
} }

@ -366,8 +366,8 @@ func (ui *UI) layout(gtx layout.Context, sysIns system.Insets, state *clientStat
userID = netmap.User() userID = netmap.User()
expiry = netmap.Expiry expiry = netmap.Expiry
localName = netmap.SelfNode.DisplayName(false) localName = netmap.SelfNode.DisplayName(false)
if addrs := netmap.Addresses; len(addrs) > 0 { if addrs := netmap.GetAddresses(); addrs.Len() > 0 {
localAddr = addrs[0].Addr().String() localAddr = addrs.At(0).Addr().String()
} }
} }
if p := state.backend.Prefs; p != nil { if p := state.backend.Prefs; p != nil {

Loading…
Cancel
Save