Commit Graph

46 Commits (9d00ad8c8f66117ec60736488025f8441126c975)

Author SHA1 Message Date
ginuerzh 1178c4757f feat(cmd): add -R auto-reload flag for periodic config refresh
Introduce -R <duration> flag (e.g., -R 30s, -R 1m) that triggers
periodic config reload. Combined with -C URL support, this enables
centralized fleet management where nodes poll a remote config server.

The reload goroutine reuses the existing SIGHUP reloadConfig path:
parser.Parse() → loader.Load() → p.run(cfg). When -R is zero
(default) behavior is unchanged; SIGHUP still works independently.
2026-06-20 20:12:11 +08:00
ginuerzh 73069f50e3 feat: support multiple -C config files
Change -C flag from string to stringList, allowing:
  gost -C base.yml -C services.yml -C auth.yml

Closes go-gost/gost#150
2026-06-20 18:56:25 +08:00
ginuerzh 581dd74bbb add config hot reload 2025-01-08 23:16:55 +08:00
ginuerzh 0d7a6f8091 add port range support for service 2024-07-08 22:52:01 +08:00
ginuerzh 56a68ae06f fix netns for socks5 and relay handler 2024-06-24 21:42:37 +08:00
ginuerzh 4c934cd737 add more config options for kcp 2023-11-16 22:19:42 +08:00
ginuerzh 4847f9ee9f add support for windows service 2023-03-31 14:51:08 +08:00
ginuerzh c765789076 fix race condition in config updating 2023-01-20 10:28:32 +08:00
ginuerzh fa47726c3d add tunnel feature for relay 2023-01-14 13:18:45 +08:00
ginuerzh 4b3e711adb update grpc 2022-12-21 18:21:23 +08:00
ginuerzh 258d9f5b26 fix traffic limiter 2022-12-19 19:38:38 +08:00
Carlos Ibáñez 5d9d33f368 [main] Add -- cmd flag separator to start different Gost processes 2022-12-15 11:12:21 +08:00
ginuerzh 39cb9c65d9 grpc.dialer: do not resolve server address 2022-12-01 19:24:52 +08:00
segfault-bilibili 4ef4448249 insert services and nodes to loaded config 2022-11-28 17:20:54 +08:00
segfault-bilibili 1151ecd2a4 fix typo 2022-11-28 17:20:54 +08:00
ginuerzh 09c12b013c add hooks for service 2022-11-03 21:32:12 +08:00
ginuerzh 7f924fdeb6 fix proxy protocol 2022-09-28 11:53:25 +08:00
ginuerzh 85de11ae46 update metrics usage 2022-07-29 21:21:39 +08:00
ginuerzh 84255850b6 fix resolver for ipv6 2022-05-01 20:56:08 +08:00
ginuerzh 7c91dfb56f update go.mod 2022-04-05 17:57:26 +08:00
ginuerzh 1b31c80d2c update imports 2022-04-04 12:47:07 +08:00
ginuerzh 733655625a add tproxy support 2022-03-31 21:11:49 +08:00
ginuerzh 7b5913123f update dependency 2022-03-17 22:59:58 +08:00
ginuerzh bb7fb31e3d update metrics 2022-03-16 21:28:03 +08:00
ginuerzh 2864480296 move pkg to github.com/go-gost/core 2022-03-16 20:38:26 +08:00
ginuerzh a2d62d1753 move metrics module to github.com/go-gost/metrics 2022-03-14 22:07:36 +08:00
ginuerzh 749d802a12 move config and api modules to individual repo 2022-03-14 21:34:55 +08:00
ginuerzh 5c5af49b0e mv non-core components to extended repo 2022-03-14 17:43:37 +08:00
ginuerzh e587b4df7c add metrics for service 2022-03-05 00:28:13 +08:00
ginuerzh 0aee4f0ebd update for go1.18 2022-02-25 13:08:05 +08:00
ginuerzh edca3e0a55 fix issue#10 2022-02-13 20:40:37 +08:00
ginuerzh f2d806886a add basic auth for webapi 2022-02-12 21:05:39 +08:00
ginuerzh c1bf501734 update webapi 2022-02-09 11:37:09 +08:00
ginuerzh f1eaef8d69 add web api 2022-02-08 23:46:54 +08:00
ginuerzh 1ec10ff7dd update config parsing 2022-02-07 22:15:16 +08:00
ginuerzh 0e9a975a26 fix http connector 2022-01-28 16:13:43 +08:00
ginuerzh 566e930010 update config 2022-01-03 23:45:49 +08:00
ginuerzh c651743ea2 add http2 transport 2021-12-14 21:52:11 +08:00
ginuerzh 5b97b878fb add sni handler 2021-11-25 23:08:03 +08:00
ginuerzh 8861644bbc fix udp bind 2021-11-22 17:52:38 +08:00
ginuerzh 8185d1124f add relay proxy 2021-11-18 22:54:23 +08:00
ginuerzh 10f53e18a0 add socks5 udp relay 2021-11-08 15:26:23 +08:00
ginuerzh 64736585ee improve http handler 2021-10-31 12:41:53 +08:00
ginuerzh 24c33e6194 improve logger 2021-10-29 19:00:34 +08:00
ginuerzh 16ddfba1d1 add config 2021-10-29 13:35:44 +08:00
ginuerzh 3351aa5974 add chain 2021-10-26 21:07:46 +08:00