yisier / nps

在 0.26.10 版本的基础上修改而来的
https://ehang.io/nps/documents
GNU General Public License v3.0
1.95k stars 245 forks source link

使用端口范围映射时 target_ip 不能为域名 #74

Closed nkxingxh closed 2 months ago

nkxingxh commented 1 year ago

当使用配置文件模式,且使用端口范围映射时:

target_ip 如果为 域名mode=tcp 则会导致该映射添加为 域名代理

例如

[tcp]
mode=tcp
server_port=9001-9009,10001,11000-12000
target_port=8001-8009,10002,13000-14000
target_ip=example.com

target_ip 如果为 域名mode=udp 则会导致该映射不被添加

例如

[tcp]
mode=udp
server_port=9001-9009,10001,11000-12000
target_port=8001-8009,10002,13000-14000
target_ip=example.com

(当 target_ip 为 IP 时则不存在该问题)

是否能够使得端口范围映射支持目标域名而不只是 IP ?

Server (please complete the following information):

Client (please complete the following information):