From 4dbfa25985367eb4b67367124ef03e933f7784b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 22 Dec 2023 16:20:47 +0800 Subject: [PATCH] feat: remove path limit --- route.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/route.go b/route.go index 9334803..e658d7a 100644 --- a/route.go +++ b/route.go @@ -176,12 +176,6 @@ func (r *Route) RunTLSWithCert(host, certFile, keyFile string) error { if certFile == "" || keyFile == "" { return errors.New("certificate can't be empty") } - if strings.HasPrefix(certFile, "/") { - certFile = "." + certFile - } - if strings.HasPrefix(keyFile, "/") { - keyFile = "." + keyFile - } r.outputRoutes() color.Greenln(termlink.Link("[HTTPS] Listening and serving HTTPS on", host))