You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can listen to the port 01023 if we have the root access to run the program, however 11023 ports are "privileged" ports. It may not safe if we listen these ports.
So in the code
if (info.port < 0) {
fprintf(stderr, "ttyd: invalid port: %s\n", optarg);
return -1;
}
Do we need to change the condition if( info.port < 0) to if(info.port < 1024)?
The text was updated successfully, but these errors were encountered:
I don't think listening on a "privileged" port is not safe, if you don't want to use root user to run the command, you can use the --uid and --gid option to run ttyd as other user and group.
We can listen to the port 0
1023 if we have the root access to run the program, however 11023 ports are "privileged" ports. It may not safe if we listen these ports.So in the code
if (info.port < 0) {
fprintf(stderr, "ttyd: invalid port: %s\n", optarg);
return -1;
}
Do we need to change the condition if( info.port < 0) to if(info.port < 1024)?
The text was updated successfully, but these errors were encountered: