mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-02-12 10:31:52 +00:00
Fix V2ray port redirection
This commit is contained in:
parent
96d50f1d40
commit
edd4467488
2 changed files with 7 additions and 1 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
|||
omr-vps-admin (0.3+20230724) unstable; urgency=medium
|
||||
|
||||
* Fix port redirection string to int
|
||||
|
||||
-- OpenMPTCProuter <contact@openmptcprouter.com> Mon, 24 Jul 2023 09:24:34 +0200
|
||||
|
||||
omr-vps-admin (0.3+20230718) unstable; urgency=medium
|
||||
|
||||
* Fix FastAPI version
|
||||
|
|
|
@ -581,7 +581,7 @@ def v2ray_add_port(user, port, proto, name, destip, destport):
|
|||
if inbounds['tag'] == tag:
|
||||
exist = 1
|
||||
if exist == 0:
|
||||
inbounds = {'tag': tag, 'port': port, 'protocol': 'dokodemo-door', 'settings': {'network': proto, 'port': destport, 'address': destip}}
|
||||
inbounds = {'tag': tag, 'port': int(port), 'protocol': 'dokodemo-door', 'settings': {'network': proto, 'port': int(destport), 'address': destip}}
|
||||
#inbounds = {'tag': user.username + '_redir_' + proto + '_' + str(port), 'port': str(port), 'protocol': 'dokodemo-door', 'settings': {'network': proto, 'port': str(destport), 'address': destip}}
|
||||
data['inbounds'].append(inbounds)
|
||||
routing = {'type': 'field','inboundTag': [tag], 'outboundTag': 'OMRLan'}
|
||||
|
|
Loading…
Reference in a new issue