References
TCP protocol configuration
json:tcp_protocol
Original definition
# TCP protocol configuration
## Definition
~~~json
{
"isOn": "Whether enabled",
"listen": [
{
"protocol": "Protocol",
"host": "Host address, usually empty",
"portRange": "Port or port range"
},
...
]
}
~~~
## Examples
### Listen on port 1234
~~~json
{
"isOn": true,
"listen": [
{
"protocol": "tcp",
"host": "",
"portRange": "1234"
}
]
}
~~~
### Listen on ports 1234 and 2345
~~~json
{
"isOn": true,
"listen": [
{
"protocol": "tcp",
"portRange": "1234"
},
{
"protocol": "tcp",
"portRange": "2345"
}
]
}
~~~
### Listen on all ports from 1234 to 1240
~~~json
{
"isOn": true,
"listen": [
{
"protocol": "tcp",
"host": "",
"portRange": "1234-1240"
}
]
}
~~~