muzea / portfwd

A low performance port forwarding implementation
https://muzea.github.io/portfwd
20 stars 4 forks source link

config.json里的端口号写前写后导致的BUG #5

Open j0hnnie opened 5 years ago

j0hnnie commented 5 years ago

这样写是可以的:

[root@xxx portfwd]# cat config.json 
{
    "proxy": {
    "5000": "47.xxx.xxx.xxx:5000",
    "5001/8000": "47.xxx.xxx.xxx:5001"
    },
    "APIPort": ":3001"
}

这样写会挂掉:

[root@xxx portfwd]# cat config.json 
{
    "proxy": {
    "5001/8000": "47.xxx.xxx.xxx:5001",
        "5000": "47.xxx.xxx.xxx:5000"
    },
    "APIPort": ":3001"
}