From bec104b68b312479eb4639a3985457114f7f09b3 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Tue, 3 Sep 2024 07:16:57 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E9=85=92=E5=BA=97=E6=BA=90.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/酒店源.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/酒店源.py b/py/酒店源.py index af4734d..48afbf7 100644 --- a/py/酒店源.py +++ b/py/酒店源.py @@ -53,7 +53,7 @@ def modify_urls(url): # 获取 URL 中的 IP 地址部分 ip_address = url[ip_start_index:port_start_index] # 获取 URL 中的端口部分 - port = url[port_start_index:] + port = url[port_start_index + 1:] # 跳过冒号本身 # 组合成新的 URL modified_url = f"{protocol}{ip_address}{port}{ip_end}" # 返回修改后的 URL