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/feature/buildfeatures
Brad Fitzpatrick bcd79b161a feature/featuretags: add option to turn off DNS
Saves 328 KB (2.5%) off the minimal binary.

For IoT devices that don't need MagicDNS (e.g. they don't make
outbound connections), this provides a knob to disable all the DNS
functionality.

Rather than a massive refactor today, this uses constant false values
as a deadcode sledgehammer, guided by shotizam to find the largest DNS
functions which survived deadcode.

A future refactor could make it so that the net/dns/resolver and
publicdns packages don't even show up in the import graph (along with
their imports) but really it's already pretty good looking with just
these consts, so it's not at the top of my list to refactor it more
soon.

Also do the same in a few places with the ACME (cert) functionality,
as I saw those while searching for DNS stuff.

Updates #12614

Change-Id: I8e459f595c2fde68ca16503ff61c8ab339871f97
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 months ago
..
buildfeatures.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_acme_disabled.go feature/featuretags, all: add ts_omit_acme to disable TLS cert support 4 months ago
feature_acme_enabled.go feature/featuretags, all: add ts_omit_acme to disable TLS cert support 4 months ago
feature_aws_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_aws_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_bird_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_bird_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_captiveportal_disabled.go feature/featuretags: add build tag to remove captive portal detection 4 months ago
feature_captiveportal_enabled.go feature/featuretags: add build tag to remove captive portal detection 4 months ago
feature_capture_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_capture_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_cliconndiag_disabled.go feature/featuretags: make CLI connection error diagnostics modular 3 months ago
feature_cliconndiag_enabled.go feature/featuretags: make CLI connection error diagnostics modular 3 months ago
feature_clientupdate_disabled.go feature/clientupdate: move clientupdate to a modular feature, disabled for tsnet 3 months ago
feature_clientupdate_enabled.go feature/clientupdate: move clientupdate to a modular feature, disabled for tsnet 3 months ago
feature_completion_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_completion_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_dbus_disabled.go net/dns, feature/featuretags: make NetworkManager, systemd-resolved, and DBus modular 4 months ago
feature_dbus_enabled.go net/dns, feature/featuretags: make NetworkManager, systemd-resolved, and DBus modular 4 months ago
feature_debugeventbus_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_debugeventbus_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_debugportmapper_disabled.go feature/portmapper: make the portmapper & its debugging tools modular 4 months ago
feature_debugportmapper_enabled.go feature/portmapper: make the portmapper & its debugging tools modular 4 months ago
feature_desktop_sessions_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_desktop_sessions_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_dns_disabled.go feature/featuretags: add option to turn off DNS 3 months ago
feature_dns_enabled.go feature/featuretags: add option to turn off DNS 3 months ago
feature_doctor_disabled.go doctor: add ts_omit_doctor support 3 months ago
feature_doctor_enabled.go doctor: add ts_omit_doctor support 3 months ago
feature_drive_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_drive_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_gro_disabled.go wgengine/netstack/gro: permit building without GRO 3 months ago
feature_gro_enabled.go wgengine/netstack/gro: permit building without GRO 3 months ago
feature_iptables_disabled.go util/linuxfw, feature/buildfeatures: add ts_omit_iptables to make IPTables optional 3 months ago
feature_iptables_enabled.go util/linuxfw, feature/buildfeatures: add ts_omit_iptables to make IPTables optional 3 months ago
feature_kube_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_kube_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_linuxdnsfight_disabled.go feature/linuxdnsfight: move inotify watching of /etc/resolv.conf out to a feature 4 months ago
feature_linuxdnsfight_enabled.go feature/linuxdnsfight: move inotify watching of /etc/resolv.conf out to a feature 4 months ago
feature_logtail_disabled.go feature/logtail: pull logtail + netlog out to modular features 3 months ago
feature_logtail_enabled.go feature/logtail: pull logtail + netlog out to modular features 3 months ago
feature_netlog_disabled.go feature/logtail: pull logtail + netlog out to modular features 3 months ago
feature_netlog_enabled.go feature/logtail: pull logtail + netlog out to modular features 3 months ago
feature_netstack_disabled.go ipn/ipnlocal: move last unconditional gvisor import, complete ts_omit_netstack support 3 months ago
feature_netstack_enabled.go ipn/ipnlocal: move last unconditional gvisor import, complete ts_omit_netstack support 3 months ago
feature_networkmanager_disabled.go net/dns, feature/featuretags: make NetworkManager, systemd-resolved, and DBus modular 4 months ago
feature_networkmanager_enabled.go net/dns, feature/featuretags: make NetworkManager, systemd-resolved, and DBus modular 4 months ago
feature_oauthkey_disabled.go tsnet,internal/client/tailscale: resolve OAuth into authkeys in tsnet (#17191) 4 months ago
feature_oauthkey_enabled.go tsnet,internal/client/tailscale: resolve OAuth into authkeys in tsnet (#17191) 4 months ago
feature_osrouter_disabled.go wgengine/router{,/osrouter}: split OS router implementations into subpackage 3 months ago
feature_osrouter_enabled.go wgengine/router{,/osrouter}: split OS router implementations into subpackage 3 months ago
feature_outboundproxy_disabled.go cmd/tailscaled: make the outbound HTTP/SOCKS5 proxy modular 4 months ago
feature_outboundproxy_enabled.go cmd/tailscaled: make the outbound HTTP/SOCKS5 proxy modular 4 months ago
feature_portlist_disabled.go feature/portlist: pull portlist service porting into extension, use eventbus 3 months ago
feature_portlist_enabled.go feature/portlist: pull portlist service porting into extension, use eventbus 3 months ago
feature_portmapper_disabled.go feature/portmapper: make the portmapper & its debugging tools modular 4 months ago
feature_portmapper_enabled.go feature/portmapper: make the portmapper & its debugging tools modular 4 months ago
feature_posture_disabled.go ipn/ipnlocal, feature/posture: pull posture out into a modular feature 3 months ago
feature_posture_enabled.go ipn/ipnlocal, feature/posture: pull posture out into a modular feature 3 months ago
feature_relayserver_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_relayserver_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_resolved_disabled.go net/dns, feature/featuretags: make NetworkManager, systemd-resolved, and DBus modular 4 months ago
feature_resolved_enabled.go net/dns, feature/featuretags: make NetworkManager, systemd-resolved, and DBus modular 4 months ago
feature_sdnotify_disabled.go feature/sdnotify: move util/systemd to a modular feature 3 months ago
feature_sdnotify_enabled.go feature/sdnotify: move util/systemd to a modular feature 3 months ago
feature_serve_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_serve_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_ssh_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_ssh_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_syspolicy_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_syspolicy_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_systray_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_systray_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_taildrop_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_taildrop_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_tailnetlock_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_tailnetlock_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_tap_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_tap_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_tpm_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_tpm_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_wakeonlan_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_wakeonlan_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_webclient_disabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
feature_webclient_enabled.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago
gen.go feature/buildfeatures: split const bools out of the featuretags package, add Has prefix 4 months ago