Commit Graph

  • d75f871541 internal/router: workaround problem with ntp bug on some Merlin routers Cuong Manh Le 2023-05-08 22:54:05 +07:00
  • 45895067c6 cmd/ctrld: only ignore listener.0 setup when setup router Cuong Manh Le 2023-05-05 23:37:02 +07:00
  • 521f06dcc1 cmd/ctrld: force 127.0.0.1:53 for listener.0 only Cuong Manh Le 2023-05-05 22:38:04 +07:00
  • 5b6a3a4c6f internal/router: disable native dot on merlin Cuong Manh Le 2023-05-05 21:25:54 +07:00
  • be497a68de internal/router: skip bad entry in leases file Cuong Manh Le 2023-05-05 08:29:41 +07:00
  • c872a3b3f6 cmd/ctrld: add "--silent" to disable log output Cuong Manh Le 2023-05-04 12:31:22 +07:00
  • e0ae0f8e7b cmd/ctrld: set default value for ip/port from custom config if missing Cuong Manh Le 2023-05-04 12:04:58 +07:00
  • ad4ca32873 cmd/ctrld: factor out code to read config file Cuong Manh Le 2023-05-04 00:53:40 +07:00
  • 24100c4cbe cmd/ctrld: use Windscribe fork of zerolog Cuong Manh Le 2023-05-04 00:05:52 +07:00
  • e3a792d50d cmd/ctrld: start listener with no default upstream Cuong Manh Le 2023-05-03 18:12:40 +07:00
  • 440d085c6d cmd/ctrld: unified logging Cuong Manh Le 2023-05-03 17:57:36 +07:00
  • 270ea9f6ca Do not block when ping upstream Cuong Manh Le 2023-05-02 15:03:53 +07:00
  • 7a156d7d15 Wait until bootstrap IPs resolved Cuong Manh Le 2023-05-02 01:03:34 +07:00
  • 4c45e6cf3d Lock while getting doh/doh3 transport Cuong Manh Le 2023-05-01 23:47:47 +07:00
  • 704bc27dba Check msg is not nil before access Question field Cuong Manh Le 2023-04-29 13:21:57 +07:00
  • b267572b38 all: implement split upstreams Cuong Manh Le 2023-04-28 01:12:59 +07:00
  • 5cad0d6be1 all: watch link state on Linux using netlink Cuong Manh Le 2023-04-29 13:56:18 +07:00
  • 56d8dc865f Use different failover mechanism on Linux Cuong Manh Le 2023-04-29 13:15:10 +07:00
  • d57c1d6d44 Workaround for DOH broken transport when network changes Cuong Manh Le 2023-04-29 03:19:56 +07:00
  • 02fa7fbe2e Workaround issue with weird DNS server when bootstraping Cuong Manh Le 2023-04-29 00:16:14 +07:00
  • 07689954bf cmd/ctrld: change default log level to warn Cuong Manh Le 2023-04-28 09:40:47 +07:00
  • a7ea20b117 cmd/ctrld: ensure runDNSServer returns when error happens Cuong Manh Le 2023-04-28 01:23:06 +07:00
  • 43fecdf60f all: log when client info included in the request Cuong Manh Le 2023-04-27 20:43:01 +07:00
  • 31239684c7 Revert "cmd/ctrld: add "start --no-cd" flag to disable cd mode" Cuong Manh Le 2023-04-27 20:09:44 +07:00
  • 5528ac8bf1 internal/router: log invalid ip address entry Cuong Manh Le 2023-04-27 00:55:37 +07:00
  • 411e23ecfe cmd/ctrld: fix missing content for default config Cuong Manh Le 2023-04-27 00:41:09 +07:00
  • 7bf231643b internal/router: normalize ip address from dnsmasq lease file Cuong Manh Le 2023-04-27 00:05:12 +07:00
  • 2326160f2f Do not rely on unspecified assignment order of return statement Cuong Manh Le 2023-04-26 21:32:08 +07:00
  • 68fe7e8406 cmd/ctrld: add "start --no-cd" flag to disable cd mode Cuong Manh Le 2023-04-26 19:44:44 +07:00
  • c7bad63869 all: allow chosing random address and port for listener Cuong Manh Le 2023-04-26 18:37:52 +07:00
  • 69319c6b41 all: support custom config from Control-D resolver Cuong Manh Le 2023-04-26 18:55:53 +07:00
  • 9df381d3d1 all: add "version" query param when fetching config Cuong Manh Le 2023-04-26 18:33:04 +07:00
  • 0af7f64bca all: use parallel dialer for bootstrapping ip Cuong Manh Le 2023-04-25 01:36:51 +07:00
  • f73cbde7a5 Update HTTP request headers Cuong Manh Le 2023-04-24 23:50:14 +07:00
  • 0645a738ad all: add router client info detection Cuong Manh Le 2023-04-20 23:16:20 +07:00
  • d52cd11322 all: use parallel dialer for connecting upstream/api Cuong Manh Le 2023-04-24 19:56:01 +07:00
  • d3d08022cc cmd/ctrld: restoring DNS on darwin before stop Cuong Manh Le 2023-04-21 10:28:23 +07:00
  • 21c8b9f8e7 Revert ignoring SIGCHLD Cuong Manh Le 2023-04-20 23:25:40 +07:00
  • 6c55d8f139 internal/router: remove ctrld-boot service when uninstall Cuong Manh Le 2023-04-20 09:55:57 +07:00
  • ccdb2a3f70 Tweak log message for policy logging Cuong Manh Le 2023-04-17 23:48:49 +07:00
  • f5ef9b917e all: implement router setup for ubios Cuong Manh Le 2023-04-18 21:16:12 +07:00
  • a5443d5ca4 all: implement router setup for merlin Cuong Manh Le 2023-04-12 10:07:16 +07:00
  • 2c7d95bba2 Support query param in upstream value Cuong Manh Le 2023-04-12 23:38:52 +07:00
  • 8a2cdbfaa3 all: implement router setup for ddwrt Cuong Manh Le 2023-03-30 01:41:30 +07:00
  • c94be0df35 all: implement router setup for openwrt Cuong Manh Le 2023-03-22 00:18:04 +07:00
  • 4b6a976747 all: initial support for setup linux router Cuong Manh Le 2023-03-15 23:25:44 +07:00
  • 0043fdf859 enable compression alexelisenko 2023-04-10 19:20:54 -04:00
  • 24e62e18fa Use errors.Join instead of copied version Cuong Manh Le 2023-04-05 16:58:58 +07:00
  • 663dbbb476 Merge pull request #39 from Control-D-Inc/timeout-no-config-mode Yegor S 2023-04-05 16:17:03 -04:00
  • 471427a439 cmd/ctrld: add default timeout when generating config in no config mode Cuong Manh Le 2023-04-06 00:49:21 +07:00
  • a777c4b00f Merge pull request #38 from Control-D-Inc/issue-33 Yegor S 2023-04-04 11:15:55 -04:00
  • dcc4cdd316 Add support for mipsle Cuong Manh Le 2023-04-04 21:55:04 +07:00
  • 9c22701940 Merge pull request #37 from Control-D-Inc/release-branch-v1.1.4 v1.1.4 Yegor S 2023-04-03 12:44:02 -04:00
  • a77a924320 Require go1.20 for building ctrld Cuong Manh Le 2023-03-31 10:38:53 +07:00
  • 95dbf71939 Upgrage tailscale.com for fixing security issue Cuong Manh Le 2023-03-31 10:38:16 +07:00
  • 8869e33a20 Inject version and commit during goreleaser build Cuong Manh Le 2023-03-31 10:25:37 +07:00
  • c94e1b02d2 all: supports multiple protocols for no config mode Cuong Manh Le 2023-03-25 00:44:27 +07:00
  • 42d29b626b Adding more source for getting available DNS Cuong Manh Le 2023-03-31 12:29:57 +07:00
  • b65a5ac283 all: fix bug that causes ctrld stop working if bootstrap failed Cuong Manh Le 2023-03-30 18:25:36 +07:00
  • ba48ff5965 all: fix os resolver hangs when all server failed Cuong Manh Le 2023-03-30 02:43:37 +07:00
  • b3a342bc44 all: some improvements for better troubleshooting Cuong Manh Le 2023-03-29 12:36:19 +07:00
  • 9927803497 cmd/ctrld: response to OS service manager earlier Cuong Manh Le 2023-03-27 23:13:24 +07:00
  • f0c604a9f1 cmd/ctrld: only watch config when doing self-check Cuong Manh Le 2023-03-20 23:53:51 +07:00
  • 8a56389396 cmd/ctrld: ensure both udp/tcp listener aborted Cuong Manh Le 2023-03-20 22:53:42 +07:00
  • 9f7bfc76db Merge pull request #31 from Control-D-Inc/release-branch-v1.1.3 v1.1.3 Yegor S 2023-03-17 12:33:32 -04:00
  • a7a5501ea5 Bump version to v1.1.3 Cuong Manh Le 2023-03-17 22:22:54 +07:00
  • c401c4ef87 cmd/ctrld: do not set default iface value for uninstall command Cuong Manh Le 2023-03-17 21:52:34 +07:00
  • 8ffb42962a Use rcode string in error message Cuong Manh Le 2023-03-17 21:46:51 +07:00
  • aad04200cb Merge pull request #28 from Control-D-Inc/release-branch-v1.1.2 v1.1.2 Cuong Manh Le 2023-03-16 22:35:09 +07:00
  • 4bfcacaf3c cmd/ctrld: bump version to v1.1.2 Cuong Manh Le 2023-03-16 10:53:33 +07:00
  • 5b362412be Add quic free version to goreleaser Cuong Manh Le 2023-03-16 10:40:17 +07:00
  • ccf07a7d1c cmd/ctrld: log that ctrld is starting Cuong Manh Le 2023-03-16 09:33:09 +07:00
  • e4eb3b2ded Do not query ipv6 eagerly when setup bootstrap IP Cuong Manh Le 2023-03-15 23:26:57 +07:00
  • 77b62f8734 cmd/ctrld: add default timeout for os resolver Cuong Manh Le 2023-03-15 20:04:26 +07:00
  • 096e7ea429 internal/net: enforce timeout for probing stack Cuong Manh Le 2023-03-15 10:33:37 +07:00
  • 3e6f6cc721 cmd/ctrld: add TCP listener Cuong Manh Le 2023-03-14 09:43:40 +07:00
  • 7dab688252 Merge pull request #26 from Control-D-Inc/release-branch-v1.1.1 v1.1.1 Yegor S 2023-03-10 13:04:08 -05:00
  • 7cd1f7adda cmd/ctrld: bump version to v1.1.1 Cuong Manh Le 2023-02-27 21:26:05 +07:00
  • 9a249c3029 .github/workflows: use go 1.20 Cuong Manh Le 2023-02-27 21:55:32 +07:00
  • 0dfa377e08 Add freebsd to goreleaser config Cuong Manh Le 2023-02-27 21:25:07 +07:00
  • 14bc29751f Use both os and bootstrap DNS to resolve bootstrap IP Cuong Manh Le 2023-03-10 09:08:59 +07:00
  • e6800fbc82 Query all possible nameservers for os resolver Cuong Manh Le 2023-03-09 23:48:53 +07:00
  • 4f6c2032a1 cmd/ctrld: log reason if first query failed Cuong Manh Le 2023-03-09 14:42:40 +07:00
  • d1589bd9d6 Use separate context when querying upstream ips Cuong Manh Le 2023-03-09 14:12:12 +07:00
  • 85c95a6a3a all: set timeout for re-bootstrapping Cuong Manh Le 2023-03-09 10:27:15 +07:00
  • fa50cd4df4 all: another rework on discovering bootstrap IPs Cuong Manh Le 2023-03-08 11:38:46 +07:00
  • 018f6651c1 Fix wrong time precision in bootstrapping timeout Cuong Manh Le 2023-03-08 10:15:34 +07:00
  • 1a40767cb7 Use upstream timeout when querying bootstrap IP Cuong Manh Le 2023-03-08 09:01:42 +07:00
  • 12512a60da Always use first record from DNS response Cuong Manh Le 2023-03-07 10:41:14 +07:00
  • b0114dfaeb cmd/ctrld: make staticcheck happy Cuong Manh Le 2023-02-27 21:43:05 +07:00
  • fb20d443c1 all: retry the request more agressively Cuong Manh Le 2023-03-03 00:47:21 +07:00
  • 262dcb1dff cmd/ctrld: check for ipv6 listen local Cuong Manh Le 2023-03-02 09:16:51 +07:00
  • 8b08cc8a6e all: rework bootstrap IP discovering Cuong Manh Le 2023-03-01 11:14:10 +07:00
  • 930a5ad439 cmd/ctrld: only set ::1 as DNS server on Windows if ipv6 available Cuong Manh Le 2023-03-01 09:02:10 +07:00
  • 8852f60ccb Add idle conn timeout for HTTP transport Cuong Manh Le 2023-02-28 09:29:57 +07:00
  • 2e1b3f9d07 Upgrade golang.org/x/net to v0.7.0 Cuong Manh Le 2023-02-27 22:01:16 +07:00
  • 6d3c82d38d internal/dns: add debian/openresolv to linux manager Cuong Manh Le 2023-02-27 21:41:20 +07:00
  • cad71997aa cmd/ctrld: allocate new ip instead of port Cuong Manh Le 2023-02-21 23:52:50 +07:00
  • 82900eeca6 cmd/ctrld: move log file if existed on app start Cuong Manh Le 2023-02-23 09:16:34 +07:00
  • 84fca06c62 cmd/ctrld: implement allocate/deallocate ip on freebsd Cuong Manh Le 2023-02-21 20:39:45 +07:00