Commit Graph

  • eb27d1482b cmd/cli: use warn level for network changes logging Cuong Manh Le 2025-02-04 13:33:34 +07:00
  • f57972ead7 cmd/cli: make runtime log format better Cuong Manh Le 2025-02-04 13:27:15 +07:00
  • 168eaf538b increase OSresolver timeout, fix debug log statements Alex 2025-02-03 21:19:03 -05:00
  • 1560455ca3 Use all available nameservers in lookupIP Cuong Manh Le 2025-02-02 11:35:49 +07:00
  • 028475a193 fix os.Resolve method to prefer LAN answers Alex 2025-01-31 14:50:38 -05:00
  • f7a6dbe39b fix upgrade flow Alex 2025-01-30 05:09:51 -05:00
  • e573a490c9 ignore non physical ifaces in validInterfaces method on Windows Alex 2025-01-29 14:09:53 -05:00
  • ce3281e70d much more debugging, improved nameserver detection, no more testing nameservers Alex 2025-01-25 01:26:48 -05:00
  • 0fbfd160c9 cmd/cli: log interfaces state after dns set Cuong Manh Le 2025-01-24 01:39:17 +07:00
  • 20759017e6 all: use local resolver for ADDC Cuong Manh Le 2025-01-24 00:38:53 +07:00
  • 69e0aab73e cmd/cli: use wmi to get AD domain Cuong Manh Le 2025-01-23 19:09:10 +07:00
  • 7ed6733fb7 cmd/cli: better error if internal log is not available Cuong Manh Le 2025-01-21 00:21:16 +07:00
  • 9718ab8579 cmd/cli: fix getting interface name when disabled on Windows Cuong Manh Le 2025-01-17 14:09:51 +07:00
  • 2687a4a018 remove leaking timeout, fix blocking upstreams checks, leaking is per listener, OS resolvers are tested in parallel, reset is only done is os is down Alex 2025-01-16 19:27:24 -05:00
  • 2d9c60dea1 cmd/cli: log that multiple interfaces DNS set Cuong Manh Le 2025-01-16 07:24:16 +07:00
  • 841be069b7 cmd/cli: only list physical interfaces when listing Cuong Manh Le 2025-01-16 14:00:34 +07:00
  • 7833132917 Don't automatically restore saved DNS settings when switching networks Alex Paguis 2025-01-15 17:31:10 -05:00
  • e9e63b0983 cmd/cli: check root privilege for log commands Cuong Manh Le 2025-01-15 23:14:18 +07:00
  • 4df470b869 cmd/cli: ensure all ifaces operation is set correctly Cuong Manh Le 2025-01-15 15:39:35 +07:00
  • 89600f6091 cmd/cli: new flow for leaking queries to OS resolver Cuong Manh Le 2025-01-15 19:51:55 +07:00
  • f986a575e8 cmd/cli: log upstream name if endpoint is empty Cuong Manh Le 2025-01-14 22:16:03 +07:00
  • 9c2fe8d21f cmd/cli: set running iface for stop/uninstall commands Cuong Manh Le 2025-01-14 14:24:27 +07:00
  • 8bcbb9249e cmd/cli: add an internal warn level log writer Cuong Manh Le 2025-01-13 20:26:33 +07:00
  • a95d50c0af cmd/cli: ensure set/reset DNS is done before checking OS resolver Cuong Manh Le 2025-01-13 20:03:56 +07:00
  • 5db7d3577b cmd/cli: handle . domain query Cuong Manh Le 2025-01-10 18:50:39 +07:00
  • c53a0ca1c4 cmd/cli: close log reader after reading Cuong Manh Le 2025-01-10 18:49:46 +07:00
  • 6fd3d1788a cmd/cli: fix memory leaked when querying wmi instance Cuong Manh Le 2025-01-10 18:40:21 +07:00
  • 087c1975e5 internal/controld: bump send log timeout to 300s Cuong Manh Le 2025-01-10 09:44:06 +07:00
  • 3713cbecc3 cmd/cli: correct log writer initial size Cuong Manh Le 2025-01-10 09:43:16 +07:00
  • 6046789fa4 cmd/cli: re-initializing OS resolver before doing check upstream Cuong Manh Le 2025-01-10 01:50:03 +07:00
  • 3ea69b180c cmd/cli: use config timeout when checking upstream Cuong Manh Le 2025-01-08 16:57:32 +07:00
  • db6e977e3a Only used saved LAN servers if available Cuong Manh Le 2025-01-07 21:15:12 +07:00
  • a5c776c846 all: change send log to use x-www-form-urlencoded Cuong Manh Le 2025-01-07 16:56:09 +07:00
  • 5a566c028a cmd/cli: better error message when log file is empty Cuong Manh Le 2024-12-27 16:28:56 +07:00
  • ff43c74d8d Bump golang.org/x/net to v0.33.0 Cuong Manh Le 2024-12-19 21:44:25 +07:00
  • 3c7255569c Update config.md Yegor S 2025-01-06 18:40:44 -05:00
  • 4a92ec4d2d cmd/cli: fix race in Test_addSplitDnsRule Cuong Manh Le 2024-12-19 22:10:34 +07:00
  • 9bbccb4082 cmd/cli: get default interface once Cuong Manh Le 2024-12-18 15:46:36 +07:00
  • 4f62314646 cmd/cli: do API reloading if exlcude list changed Cuong Manh Le 2024-12-13 18:36:45 +07:00
  • cb49d0d947 cmd/cli: perform leaking queries in non-cd mode Cuong Manh Le 2024-12-13 14:41:46 +07:00
  • 89f7874fc6 cmd/cli: normalize log path when sending log Cuong Manh Le 2024-12-13 14:25:30 +07:00
  • 221917e80b Bump golang.org/x/crypto to v0.31.0 Cuong Manh Le 2024-12-12 18:51:47 +07:00
  • 37d41bd215 Skip public DNS for LAN query Cuong Manh Le 2024-12-12 18:36:39 +07:00
  • 8a96b8bec4 cmd/cli: adopt FilteredLevelWriter when doing internal logging Cuong Manh Le 2024-12-12 15:47:18 +07:00
  • 02ee113b95 Add missing kea dhcp4 format when validating config Cuong Manh Le 2024-12-12 18:47:22 +07:00
  • f71dd78915 cmd/cli: move cobra commands to separated file Cuong Manh Le 2024-12-10 17:34:31 +07:00
  • cd5619a05b cmd/cli: add internal logging Cuong Manh Le 2024-12-09 23:17:00 +07:00
  • a63a30c76b all: add sending logs to ControlD API Cuong Manh Le 2024-12-06 20:47:52 +07:00
  • f5ba8be182 Use ControlD Public DNS when non-available Cuong Manh Le 2024-12-11 14:10:55 +07:00
  • a9f76322bd Bump quic-go to v0.48.2 Cuong Manh Le 2024-12-06 13:53:26 +07:00
  • ed39269c80 Implementing new initializing OS resolver logic Cuong Manh Le 2024-12-05 22:37:06 +07:00
  • 09426dcd36 cmd/cli: new flow for LAN hostname query Cuong Manh Le 2024-12-05 17:06:06 +07:00
  • 17941882a9 cmd/cli: split-route SRV record to OS resolver Cuong Manh Le 2024-12-05 15:00:06 +07:00
  • 70ab8032a0 cmd/cli: silent WMI query Cuong Manh Le 2024-12-04 17:36:04 +07:00
  • 8360bdc50a cmd/cli: add split route AD top level domain on Windows Cuong Manh Le 2024-11-27 16:00:38 +07:00
  • 6837176ec7 cmd/cli: get static DNS using syscall Cuong Manh Le 2024-11-25 20:06:42 +07:00
  • 5e9b4244e7 cmd/cli: get physical interfaces using Windows WMI Cuong Manh Le 2024-11-25 18:38:40 +07:00
  • 9b6a308958 cmd/cli: get AD domain using Windows API Cuong Manh Le 2024-11-21 20:24:46 +07:00
  • 71e327653a cmd/cli: check local DNS using Windows API Cuong Manh Le 2024-11-21 16:52:59 +07:00
  • a56711796f cmd/cli: set DNS using Windows API Cuong Manh Le 2024-11-20 21:39:01 +07:00
  • 09495f2a7c Merge pull request #194 from Control-D-Inc/release-branch-v1.3.11 v1.3.11 Cuong Manh Le 2024-11-20 12:54:22 +07:00
  • 484643e114 cmd/cli: lowercase AD domain to be consistent with network rules release-branch-v1.3.11 Cuong Manh Le 2024-11-12 15:48:01 +07:00
  • da91aabc35 cmd/cli: ensure extra split rule is always written Cuong Manh Le 2024-11-11 18:47:14 +07:00
  • c654398981 cmd/cli: make widcard rules match case-insensitively Cuong Manh Le 2024-11-11 15:29:51 +07:00
  • 47a90ec2a1 cmd/cli: re-fetch pin code during deactivation checking Cuong Manh Le 2024-11-08 18:30:48 +07:00
  • 2875e22d0b cmd/cli: re-fetch deactivation pin code when reloading API config Cuong Manh Le 2024-11-08 16:27:13 +07:00
  • c5d14e0075 cmd/cli: only cleanup log file if set Cuong Manh Le 2024-11-05 18:49:42 +07:00
  • 84e06c363c Avoid tailscale.com/tsd dependency Cuong Manh Le 2024-11-01 17:13:59 +07:00
  • 5b9ccc5065 Merge pull request #182 from Control-D-Inc/release-branch-v1.3.10 v1.3.10 Cuong Manh Le 2024-10-29 14:56:32 +07:00
  • 6ca1a7ccc7 .github/workflows: use go1.23.x release-branch-v1.3.10 Cuong Manh Le 2024-09-30 18:39:53 +07:00
  • 9d666be5d4 all: add custom hostname support for provisoning Cuong Manh Le 2024-10-23 16:00:09 +07:00
  • 65de7edcde Only store last LAN server if available Cuong Manh Le 2024-10-22 00:47:03 +07:00
  • 0cdff0d368 Prefer LAN server answer over public one Cuong Manh Le 2024-10-18 01:31:40 +07:00
  • f87220a908 Avoid data race when initializing OS resolver Cuong Manh Le 2024-10-17 18:09:16 +07:00
  • 30ea0c6499 Log nameserver in OS resolver response Cuong Manh Le 2024-10-16 14:13:21 +07:00
  • 9501e35c60 Skip virtual interfaces when parsing route table Cuong Manh Le 2024-10-11 17:15:47 +07:00
  • 5ac9d17bdf cmd/cli: simplify queryFromSelf Cuong Manh Le 2024-10-04 14:40:57 +07:00
  • cb14992ddc Ignore local addresses for OS resolver Cuong Manh Le 2024-10-04 14:37:27 +07:00
  • e88372fc8c cmd/cli: log request id when leaking Cuong Manh Le 2024-09-26 15:38:26 +07:00
  • b320662d67 cmd/cli: emit warning for MacOS 15.0 in case of timeout error Cuong Manh Le 2024-09-26 15:12:00 +07:00
  • ce353cd4d9 cmd/cli: write auto split rule for AD to config file Cuong Manh Le 2024-09-24 15:09:05 +07:00
  • 4befd33866 cmd/cli: notify log server before ctrld process exit Cuong Manh Le 2024-09-24 19:50:16 +07:00
  • 4b36e3ac44 Change test query to use controld.com Cuong Manh Le 2024-09-24 00:15:08 +07:00
  • f507bc8f9e cmd/cli: cache query from self result Cuong Manh Le 2024-09-23 21:51:10 +07:00
  • 14c88f4a6d all: allow empty type for h3 and sdns Cuong Manh Le 2024-09-23 15:06:11 +07:00
  • 3e388c2857 all: leaking queries to OS resolver instead of SRVFAIL Cuong Manh Le 2024-09-23 18:27:14 +07:00
  • cfe1209d61 cmd/cli: use powershell to get physical interfaces Cuong Manh Le 2024-09-20 21:57:12 +07:00
  • 5a88a7c22c cmd/cli: decouple reset DNS task from ctrld status Cuong Manh Le 2024-09-20 21:33:44 +07:00
  • 8c661c4401 cmd/cli: fix typo in powershell command to get domain Cuong Manh Le 2024-09-21 01:42:03 +07:00
  • e6f256d640 all: add pull API config based on special DNS query Cuong Manh Le 2024-09-19 21:43:09 +07:00
  • ede354166b cmd/cli: add split route AD domain on Windows Cuong Manh Le 2024-09-17 14:50:31 +07:00
  • 282a8ce78e all: add DNS Stamps support Cuong Manh Le 2024-09-17 20:42:27 +07:00
  • 08fe04f1ee all: support h3:// protocol prefix Cuong Manh Le 2024-09-17 16:52:50 +07:00
  • 082d14a9ba cmd/cli: implement auto captive portal detection Cuong Manh Le 2024-09-13 21:28:54 +07:00
  • 617674ce43 all: update tailscale.com to v1.74.0 Cuong Manh Le 2024-09-13 20:10:26 +07:00
  • 7088df58dd Merge pull request #179 from Control-D-Inc/release-branch-v1.3.9 v1.3.9 Cuong Manh Le 2024-09-18 23:50:57 +07:00
  • 9cbd9b3e44 cmd/cli: use powershell to set/reset DNS on Windows release-branch-v1.3.9 Cuong Manh Le 2024-09-18 20:00:37 +07:00
  • e6586fd360 Merge pull request #169 from Control-D-Inc/release-branch-v1.3.8 v1.3.8 Cuong Manh Le 2024-09-14 22:07:22 +07:00
  • 33a6db2599 Configure timeout for HTTP2 transport release-branch-v1.3.8 Cuong Manh Le 2024-08-29 22:26:41 +07:00
  • 70b0c4f7b9 cmd/cli: honoring "iface" value in resetDnsTask Cuong Manh Le 2024-08-26 21:52:44 +07:00