We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc37f2c commit 920af6bCopy full SHA for 920af6b
src/config.c
@@ -165,7 +165,7 @@ void read_config(char *filename, struct config *config)
165
memset(port, 0, 6);
166
memcpy(port, buffer + left_pointer, value_length < 6 ? value_length : 6);
167
config->tunnel_port = atoi(port);
168
- if (config->internal_port < 1024 || config->internal_port > 65535)
+ if (config->tunnel_port < 1024 || config->tunnel_port > 65535)
169
{
170
fprintf(stderr, "Error reading config file: port must be between 1024-65535.\n");
171
exit(1);
0 commit comments