Skip to content

Commit

Permalink
add wg random header
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Sep 21, 2019
1 parent 8cecb9a commit c1d74f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> v3.6.2
> v3.6.3
* Added: 80端口cdn关闭(去掉域名)
* Added: 随机生成kcp header时增加wireguard header
* Changed: service命令变为systemctl
Expand Down
2 changes: 1 addition & 1 deletion v2ray_util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '3.6.2'
__version__ = '3.6.3'

from .util_core.trans import _
4 changes: 2 additions & 2 deletions v2ray_util/config_modify/multiple.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def new_port(new_stream=None):
sf = SSFactory()
info = {"method": sf.get_method(), "password": sf.get_password()}
else:
salt_stream = [StreamType.KCP_DTLS, StreamType.KCP_WECHAT, StreamType.KCP_UTP, StreamType.KCP_SRTP]
salt_stream = [StreamType.KCP_DTLS, StreamType.KCP_WECHAT, StreamType.KCP_UTP, StreamType.KCP_SRTP, StreamType.KCP_WG]
random.shuffle(salt_stream)
stream = salt_stream[0]
print("{}: {} \n".format(_("random generate (srtp | wechat-video | utp | dtls) fake header, new protocol"), ColorStr.green(stream.value)))
print("{}: {} \n".format(_("random generate (srtp | wechat-video | utp | dtls | wireguard) fake header, new protocol"), ColorStr.green(stream.value)))

random_port = random.randint(1000, 65535)
new_port = input("{0} {1}, {2}: ".format(_("random generate port"), ColorStr.green(str(random_port)), _("enter to use, or input customize port")))
Expand Down

0 comments on commit c1d74f1

Please sign in to comment.