diff --git a/cmd/webui4frpc/main.go b/cmd/webui4frpc/main.go index 6745449..b66804a 100644 --- a/cmd/webui4frpc/main.go +++ b/cmd/webui4frpc/main.go @@ -402,6 +402,9 @@ func main() { Sessions: httpapi.NewSessionStore(), Cluster: reg, Ring: ring, + // Balancer is created above, before the environment that configures it is + // parsed, because the HTTP layer needs the pointer. + Balancer: balancer, // SelfAddr must be reachable by peers. 0.0.0.0/empty on a real host // would break peer reconnect, so fall back to the hostname (container // name inside docker is a routable addr on the compose network).