From 5767beb9afe3a4bfb1f84284dd61aa9e8bf7f738 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 24 Jun 2025 20:56:16 +0900 Subject: [PATCH] removed the /_pts/favicon.ico endpoint --- client.go | 4 ---- server.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/client.go b/client.go index e62419c..0c8a798 100644 --- a/client.go +++ b/client.go @@ -1660,10 +1660,6 @@ func NewClient(ctx context.Context, name string, logger Logger, cfg *ClientConfi c.WrapHttpHandler(&client_pts_xterm_file{client_ctl: client_ctl{c: &c, id: HS_ID_CTL}, file: "xterm.html"})) c.ctl_mux.Handle("/_pts/", c.WrapHttpHandler(&client_pts_xterm_file{client_ctl: client_ctl{c: &c, id: HS_ID_CTL}, file: "xterm.html"})) - c.ctl_mux.Handle("/_pts/favicon.ico", - c.WrapHttpHandler(&client_pts_xterm_file{client_ctl: client_ctl{c: &c, id: HS_ID_CTL}, file: "_forbidden"})) - c.ctl_mux.Handle("/_pts/favicon.ico/", - c.WrapHttpHandler(&client_pts_xterm_file{client_ctl: client_ctl{c: &c, id: HS_ID_CTL}, file: "_forbidden"})) c.ctl_addr = make([]string, len(cfg.CtlAddrs)) c.ctl = make([]*http.Server, len(cfg.CtlAddrs)) diff --git a/server.go b/server.go index 04be2b0..59b4148 100644 --- a/server.go +++ b/server.go @@ -1393,10 +1393,6 @@ func NewServer(ctx context.Context, name string, logger Logger, cfg *ServerConfi s.WrapHttpHandler(&server_pts_xterm_file{ServerCtl: ServerCtl{S: &s, Id: HS_ID_CTL}, file: "xterm.html"})) s.ctl_mux.Handle("/_pts/", s.WrapHttpHandler(&server_pts_xterm_file{ServerCtl: ServerCtl{S: &s, Id: HS_ID_CTL}, file: "xterm.html"})) - s.ctl_mux.Handle("/_pts/favicon.ico", - s.WrapHttpHandler(&server_pts_xterm_file{ServerCtl: ServerCtl{S: &s, Id: HS_ID_CTL}, file: "_forbidden"})) - s.ctl_mux.Handle("/_pts/favicon.ico/", - s.WrapHttpHandler(&server_pts_xterm_file{ServerCtl: ServerCtl{S: &s, Id: HS_ID_CTL}, file: "_forbidden"})) s.ctl = make([]*http.Server, len(cfg.CtlAddrs)) for i = 0; i < len(cfg.CtlAddrs); i++ {