cmd/sniproxy: Set App name in tsnet hostinfo

Updates #1748
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
pull/7978/head
Denton Gentry 2 years ago committed by Denton Gentry
parent b3c3a9f174
commit a82f275619

@ -18,6 +18,7 @@ import (
"golang.org/x/net/dns/dnsmessage" "golang.org/x/net/dns/dnsmessage"
"inet.af/tcpproxy" "inet.af/tcpproxy"
"tailscale.com/client/tailscale" "tailscale.com/client/tailscale"
"tailscale.com/hostinfo"
"tailscale.com/net/netutil" "tailscale.com/net/netutil"
"tailscale.com/tsnet" "tailscale.com/tsnet"
"tailscale.com/types/nettype" "tailscale.com/types/nettype"
@ -36,6 +37,8 @@ func main() {
log.Fatal("no ports") log.Fatal("no ports")
} }
hostinfo.SetApp("sniproxy")
var s server var s server
defer s.ts.Close() defer s.ts.Close()
Loading…
Cancel
Save