Skip to content

Commit

Permalink
Update hysteria2.py
Browse files Browse the repository at this point in the history
Signed-off-by: seagullz4 <[email protected]>
  • Loading branch information
seagullz4 authored Jan 14, 2025
1 parent 79fd8c8 commit 80867d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hysteria2.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def hysteria2_config(): #hysteria2配置
os.system("touch /etc/hy2config/jump_port_back.sh")
jump_port_back = Path(r"/etc/hy2config/jump_port_back.sh")
jump_port_back.write_text(f"#!/bin/sh\niptables -t nat -D PREROUTING -i eth0 -p udp --dport {first_port}:{last_port} -j REDIRECT --to-ports {hy2_port}")
os.system("chmod 777 /etc/hy2config/jump_port_back.sh")
jump_ports_neko = f"mport={hy2_port},{first_port}-{last_port}&"
jump_ports_v2ray = f"&mport={first_port}-{last_port}"
break
Expand Down

0 comments on commit 80867d6

Please sign in to comment.