I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 5a3e2645 authored by zzz's avatar zzz
Browse files

Transport: Block SIP ports

parent c259000c
No related branches found
No related tags found
No related merge requests found
...@@ -247,6 +247,8 @@ public abstract class TransportUtil { ...@@ -247,6 +247,8 @@ public abstract class TransportUtil {
port != 4045 && // lockd port != 4045 && // lockd
port != 4444 && // HTTP port != 4444 && // HTTP
port != 4445 && // HTTPS port != 4445 && // HTTPS
port != 5060 && // SIP https://groups.google.com/a/chromium.org/g/blink-dev/c/tTGznHWRB9U
port != 5061 && // SIP https://groups.google.com/a/chromium.org/g/blink-dev/c/tTGznHWRB9U
port != 6000 && // lockd port != 6000 && // lockd
(!(port >= 6665 && port <= 6669)) && // IRC and alternates (!(port >= 6665 && port <= 6669)) && // IRC and alternates
port != 6697 && // IRC+TLS port != 6697 && // IRC+TLS
...@@ -268,7 +270,7 @@ public abstract class TransportUtil { ...@@ -268,7 +270,7 @@ public abstract class TransportUtil {
*/ */
public static void logInvalidPort(Log log, String transportStyle, int port) { public static void logInvalidPort(Log log, String transportStyle, int port) {
log.error("Specified " + transportStyle + " port " + port + " is not valid, selecting a new port"); log.error("Specified " + transportStyle + " port " + port + " is not valid, selecting a new port");
log.error("Invalid ports are: 0-1023, 1900, 2049, 2827, 3659, 4045, 4444, 4445, 6000, 6665-6669, 6697, 7650-7668, 8998, 9001, 9030, 9050, 9100, 9150, 31000, 32000, 65536+"); log.error("Invalid ports are: 0-1023, 1900, 2049, 2827, 3659, 4045, 4444, 4445, 5060, 5061, 6000, 6665-6669, 6697, 7650-7668, 8998, 9001, 9030, 9050, 9100, 9150, 31000, 32000, 65536+");
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment