Update 酒店源.py

This commit is contained in:
frxz751113
2024-09-03 07:16:57 +08:00
committed by GitHub
parent 554de9f4dd
commit bec104b68b
+1 -1
View File
@@ -53,7 +53,7 @@ def modify_urls(url):
# 获取 URL 中的 IP 地址部分 # 获取 URL 中的 IP 地址部分
ip_address = url[ip_start_index:port_start_index] ip_address = url[ip_start_index:port_start_index]
# 获取 URL 中的端口部分 # 获取 URL 中的端口部分
port = url[port_start_index:] port = url[port_start_index + 1:] # 跳过冒号本身
# 组合成新的 URL # 组合成新的 URL
modified_url = f"{protocol}{ip_address}{port}{ip_end}" modified_url = f"{protocol}{ip_address}{port}{ip_end}"
# 返回修改后的 URL # 返回修改后的 URL