You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net
Kyle McMartin bd29c4ab40 net/dns/resolvd: prevent overwriting our backup resolv.conf (#12360)
When SetDNS is called multiple times, such as on start up, the current
implementation will create backupConf, and then subsequent calls will
overwrite our backup with the last generated resolv.conf file. Guard
against this by only copying the backupConf the first time.

Write the sentinel comments that allow us to check whether we "own" the
resolv.conf as resolvconffile does. Also do some clean up of the resolvd
nameserver entries and whitespace, to enable a follow up commit to
transition to writing the config with resolvconffile instead of open
coding it.

Fixes #12360

Signed-off-by: Kyle McMartin <jkkm@jkkm.org>
9 months ago
..
art all: fix new lint warnings from bumping staticcheck 1 year ago
bakedroots net/bakedroots: add LetsEncrypt ISRG Root X2 1 year ago
captivedetection tailcfg: add DERPRegion.NoMeasureNoHome, deprecate+document Avoid [cap 115] 11 months ago
connstats {net/connstats,wgengine/magicsock}: fix packet counting in connstats 1 year ago
dns net/dns/resolvd: prevent overwriting our backup resolv.conf (#12360) 9 months ago
dnscache net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 9 months ago
dnsfallback net/netmon: publish events to event bus 9 months ago
flowtrack net/flowtrack: fix, test String method 2 years ago
ipset all: use iterators over slice views more 1 year ago
ktimeout various: disable MPTCP when setting TCP_USER_TIMEOUT sockopt (#15063) 11 months ago
memnet net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 9 months ago
netaddr all: update copyright and license headers 3 years ago
netcheck all: use network less when running in v86 emulator 10 months ago
neterror net/neterror, wgengine/magicsock: use UDP GSO and GRO on Linux (#7791) 3 years ago
netkernelconf ipn/{ipnlocal,localapi},net/netkernelconf,client/tailscale,cmd/containerboot: optionally enable UDP GRO forwarding for containers (#12410) 2 years ago
netknob all: update copyright and license headers 3 years ago
netmon net/netmon: publish events to event bus 9 months ago
netns net/netns: remove some logspam by avoiding logging parse errors due to unspecified addresses 1 year ago
netstat all: add test for package comments, fix, add comments as needed 2 years ago
netutil net/netmon: publish events to event bus 9 months ago
netx net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 9 months ago
packet net/packet: implement Geneve header serialization (#15301) 10 months ago
ping net/ping: fix ICMP echo code field to 0 2 years ago
portmapper net/portmapper: fix test flakes from logging after test done 9 months ago
proxymux all: cleanup unused code, part 1 (#10661) 2 years ago
routetable net/routetable: don't try to fetch the route table on android 10 months ago
socks5 net/socks5: optimize UDP relay 1 year ago
sockstats net/sockstats: prevent crash in setNetMon (#13985) 1 year ago
speedtest all: update copyright and license headers 3 years ago
stun ci: enable checklocks workflow for specific packages 2 years ago
stunserver all: use Go 1.22 range-over-int 2 years ago
tcpinfo all: use Go 1.22 range-over-int 2 years ago
tlsdial cmd/derper, derp/derphttp: support, generate self-signed IP address certs 11 months ago
tsaddr net/tsaddr: include test input in test failure output 1 year ago
tsdial net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 9 months ago
tshttpproxy all: fix golangci-lint errors 1 year ago
tstun net/tstun: don't try to set link attributes on android 10 months ago
udprelay net/udprelay: change Server.AllocateEndpoint existing alloc strategy (#15792) 9 months ago
wsconn go.{mod,sum}: migrate from nhooyr.io/websocket to github.com/coder/websocket 1 year ago