From 7e772b7d3f062ab996ebb145ce0ff9fdcd082cb0 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 13 Jan 2025 14:25:09 +0900 Subject: [PATCH] added the handler to /favicon.ico to wpx --- server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.go b/server.go index c5f1800..008e8d1 100644 --- a/server.go +++ b/server.go @@ -1080,6 +1080,8 @@ func NewServer(ctx context.Context, logger Logger, ctl_addrs []string, rpc_addrs s.wrap_http_handler(&server_proxy_xterm_file{server_proxy: server_proxy{s: &s, id: "pxy"}, file: "xterm.css"})) s.pxy_mux.Handle("/_ssh/", s.wrap_http_handler(&server_proxy_xterm_file{server_proxy: server_proxy{s: &s, id: "pxy"}, file: "_forbidden"})) + s.pxy_mux.Handle("/favicon.ico", + s.wrap_http_handler(&server_proxy_xterm_file{server_proxy: server_proxy{s: &s, id: "pxy"}, file: "_forbidden"})) s.pxy_mux.Handle("/_http/{conn_id}/{route_id}/{trailer...}", s.wrap_http_handler(&server_proxy_http_main{server_proxy: server_proxy{s: &s, id: "pxy"}, prefix: "/_http"}))