Skip to content

Commit 920af6b

Browse files
committed
Fixed error checking tunnel ip
1 parent cc37f2c commit 920af6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void read_config(char *filename, struct config *config)
165165
memset(port, 0, 6);
166166
memcpy(port, buffer + left_pointer, value_length < 6 ? value_length : 6);
167167
config->tunnel_port = atoi(port);
168-
if (config->internal_port < 1024 || config->internal_port > 65535)
168+
if (config->tunnel_port < 1024 || config->tunnel_port > 65535)
169169
{
170170
fprintf(stderr, "Error reading config file: port must be between 1024-65535.\n");
171171
exit(1);

0 commit comments

Comments
 (0)