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
// Let's try to give a more helpful error message in common cases
88
+
let ctx = match e.kind(){
89
+
std::io::ErrorKind::AddrInUse => format!(
90
+
"Another program is already using port {port} (maybe {} ?). \
91
+
You can either stop that program or change the port in the configuration file.",
92
+
if port == 80 || port == 443{
93
+
"Apache or Nginx"
94
+
} else {
95
+
"another instance of SQLPage"
96
+
},
97
+
),
98
+
std::io::ErrorKind::PermissionDenied => format!(
99
+
"You do not have permission to bind to {ip} on port {port}. \
100
+
You can either run SQLPage as root with sudo, give it the permission to bind to low ports with `sudo setcap cap_net_bind_service=+ep {executable_path}`, \
// Let's try to give a more helpful error message in common cases
625
-
let ctx = match e.kind(){
626
-
std::io::ErrorKind::AddrInUse => format!(
627
-
"Another program is already using port {port} (maybe {} ?). \
628
-
You can either stop that program or change the port in the configuration file.",
629
-
if port == 80 || port == 443{
630
-
"Apache or Nginx"
631
-
} else {
632
-
"another instance of SQLPage"
633
-
},
634
-
),
635
-
std::io::ErrorKind::PermissionDenied => format!(
636
-
"You do not have permission to bind to {ip} on port {port}. \
637
-
You can either run SQLPage as root with sudo, give it the permission to bind to low ports with `sudo setcap cap_net_bind_service=+ep {executable_path}`, \
0 commit comments