Skip to content

Commit

Permalink
Allow serving on ephemeral ports by using port 0
Browse files Browse the repository at this point in the history
  • Loading branch information
fishface60 committed Dec 27, 2024
1 parent 0177503 commit ae51b9f
Show file tree
Hide file tree
Showing 35 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/rptools/maptool/client/AppActions.java
Original file line number Diff line number Diff line change
Expand Up @@ -2209,7 +2209,7 @@ protected void executeAction() {
StartServerDialogPreferences serverProps =
new StartServerDialogPreferences(); // data retrieved from
// Preferences.userRoot()
if (serverProps.getPort() == 0 || serverProps.getPort() > 65535) {
if (serverProps.getPort() > 65535) {
MapTool.showError("ServerDialog.error.port.outOfRange");
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = You must enter a numeric port.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = Port from RPTools registry is not numeric?! Web server bug?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Server "{0}" not found.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Dark
Preferences.combo.themes.filter.light = Light

ServerDialog.error.port = You must enter a numeric port.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = Port from RPTools registry is not numeric?\! Web server bug?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Server "{0}" not found.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = You must enter a numeric port.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = Port from RPTools registry is not numeric?\! Web server bug?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Server "{0}" not found.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Dark
Preferences.combo.themes.filter.light = Light

ServerDialog.error.port = Du skal angive en numerisk port.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = Port from RPTools registry is not numeric?\! Web server bug?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Serveren "{0}" blev ikke fundet.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = Du skal angive en numerisk port.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = Port from RPTools registry is not numeric?\! Web server bug?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Serveren "{0}" blev ikke fundet.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Dunkel
Preferences.combo.themes.filter.light = Hell

ServerDialog.error.port = Du musst eine Zahl als Port angeben.
ServerDialog.error.port.outOfRange = Der Port-Bereich muss zwischen 1 und 65535 liegen.
ServerDialog.error.port.outOfRange = Der Port-Bereich muss zwischen 0 und 65535 liegen.
ServerDialog.error.portNumberException = Port aus der RPTools Registrierung ist keine Zahl?\! Webserver Fehler?
ServerDialog.error.server = Servernamen oder IP-Adresse eingeben.
ServerDialog.error.serverNotFound = Server "{0}" nicht gefunden.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Letzte Kampagne beim Start l
Preferences.label.loadMRU.tooltip = Starte MapTool mit letzter verwendeter Kampagne

ServerDialog.error.port = Du musst eine Zahl als Port angeben.
ServerDialog.error.port.outOfRange = Der Port-Bereich muss zwischen 1 und 65535 liegen.
ServerDialog.error.port.outOfRange = Der Port-Bereich muss zwischen 0 und 65535 liegen.
ServerDialog.error.portNumberException = Port aus der RPTools Registrierung ist keine Zahl?\! Webserver Fehler?
ServerDialog.error.server = Servernamen oder IP-Adresse eingeben.
ServerDialog.error.serverNotFound = Server "{0}" nicht gefunden.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Dark
Preferences.combo.themes.filter.light = Light

ServerDialog.error.port = You must enter a numeric port.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = Port from RPTools registry is not numeric?\! Web server bug?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Server "{0}" not found.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = You must enter a numeric port.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = Port from RPTools registry is not numeric?\! Web server bug?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Server "{0}" not found.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = You must enter a numeric port.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = Port from RPTools registry is not numeric?\! Web server bug?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Server "{0}" not found.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Dark
Preferences.combo.themes.filter.light = Light

ServerDialog.error.port = Debes ingresar un puerto numérico.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = El puerto desde el registro de RPTools no es numérico?\! Error de servidor web?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Servidor "{0}" no se encuentra.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = Debes ingresar un puerto numérico.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = El puerto desde el registro de RPTools no es numérico?\! Error de servidor web?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Servidor "{0}" no se encuentra.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Dark
Preferences.combo.themes.filter.light = Light

ServerDialog.error.port = Vous devez entrer un port numérique.
ServerDialog.error.port.outOfRange = Le numéro de port doit être compris entre 1 et 65535.
ServerDialog.error.port.outOfRange = Le numéro de port doit être compris entre 0 et 65535.
ServerDialog.error.portNumberException = Le port issu du registre RPTools n'est pas numérique?\! Un bug du serveur Web?
ServerDialog.error.server = Vous devez entrer un serveur ou une adresse IP.
ServerDialog.error.serverNotFound = Serveur\: {0} introuvable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = Vous devez entrer un port numérique.
ServerDialog.error.port.outOfRange = Le numéro de port doit être compris entre 1 et 65535.
ServerDialog.error.port.outOfRange = Le numéro de port doit être compris entre 0 et 65535.
ServerDialog.error.portNumberException = Le port issu du registre RPTools n'est pas numérique?\! Un bug du serveur Web?
ServerDialog.error.server = Vous devez entrer un serveur ou une adresse IP.
ServerDialog.error.serverNotFound = Serveur\: {0} introuvable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Scuro
Preferences.combo.themes.filter.light = Chiaro

ServerDialog.error.port = Devi inserire il numero di una porta.
ServerDialog.error.port.outOfRange = L'intervallo delle porte deve essere compreso tra 1 e 65535.
ServerDialog.error.port.outOfRange = L'intervallo delle porte deve essere compreso tra 0 e 65535.
ServerDialog.error.portNumberException = La porta dal registro di RPTools non è numerica?\! Bug del server web?
ServerDialog.error.server = Devi inserire un nome server o un indirizzo IP.
ServerDialog.error.serverNotFound = Server "{0}" non trovato.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = Devi inserire il numero di una porta.
ServerDialog.error.port.outOfRange = L'intervallo delle porte deve essere compreso tra 1 e 65535.
ServerDialog.error.port.outOfRange = L'intervallo delle porte deve essere compreso tra 0 e 65535.
ServerDialog.error.portNumberException = La porta dal registro di RPTools non è numerica?\! Bug del server web?
ServerDialog.error.server = Devi inserire un nome server o un indirizzo IP.
ServerDialog.error.serverNotFound = Server "{0}" non trovato.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = 暗いテーマ
Preferences.combo.themes.filter.light = 明るいテーマ

ServerDialog.error.port = ポート番号を入力する必要があります。
ServerDialog.error.port.outOfRange = ポート番号は1から65535の間でなければなりません
ServerDialog.error.port.outOfRange = ポート番号は0から65535の間でなければなりません
ServerDialog.error.portNumberException = RPTools 登録所より取得したポート番号が数字ではない?!WEBサーバーのバグかもしれません。
ServerDialog.error.server = サーバー名またはIPアドレスを入力する必要があります。
ServerDialog.error.serverNotFound = サーバー『{0}』が見つかりません。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = 起動時に最後のキャ
Preferences.label.loadMRU.tooltip = 最後に使用したキャンペーンと共に MapTool を起動する

ServerDialog.error.port = ポート番号を入力する必要があります。
ServerDialog.error.port.outOfRange = ポート番号は1から65535の間でなければなりません
ServerDialog.error.port.outOfRange = ポート番号は0から65535の間でなければなりません
ServerDialog.error.portNumberException = RPTools 登録所より取得したポート番号が数字ではない?!WEBサーバーのバグかもしれません。
ServerDialog.error.server = サーバー名またはIPアドレスを入力する必要があります。
ServerDialog.error.serverNotFound = サーバー『{0}』が見つかりません。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Dark
Preferences.combo.themes.filter.light = Light

ServerDialog.error.port = U moet een getal invullen voor deze poort.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = Poort van RPTools register is niet numeriek?\! Webserver bug?
ServerDialog.error.server = U moet een servernaam of IP-adres invoeren.
ServerDialog.error.serverNotFound = Server "{0}" niet gevonden.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = U moet een getal invullen voor deze poort.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = Poort van RPTools register is niet numeriek?\! Webserver bug?
ServerDialog.error.server = U moet een servernaam of IP-adres invoeren.
ServerDialog.error.serverNotFound = Server "{0}" niet gevonden.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Ciemny
Preferences.combo.themes.filter.light = Jasny

ServerDialog.error.port = Musisz wprowadzić wartość numeryczną portu.
ServerDialog.error.port.outOfRange = Zakres portów musi wynosić od 1 do 65535.
ServerDialog.error.port.outOfRange = Zakres portów musi wynosić od 0 do 65535.
ServerDialog.error.portNumberException = Port z rejestru RPTools nie jest liczbą?\! Błąd serwera?
ServerDialog.error.server = Musisz wprowadzić nazwę serwera lub adres IP.
ServerDialog.error.serverNotFound = Serwer „{0}” nie odnaleziony.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = Musisz wprowadzić wartość numeryczną portu.
ServerDialog.error.port.outOfRange = Zakres portów musi wynosić od 1 do 65535.
ServerDialog.error.port.outOfRange = Zakres portów musi wynosić od 0 do 65535.
ServerDialog.error.portNumberException = Port z rejestru RPTools nie jest liczbą?\! Błąd serwera?
ServerDialog.error.server = Musisz wprowadzić nazwę serwera lub adres IP.
ServerDialog.error.serverNotFound = Serwer „{0}” nie odnaleziony.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Dark
Preferences.combo.themes.filter.light = Light

ServerDialog.error.port = Você deve digitar uma porta numérica.
ServerDialog.error.port.outOfRange = O intervalo de portas deve estar entre 1 e 65535.
ServerDialog.error.port.outOfRange = O intervalo de portas deve estar entre 0 e 65535.
ServerDialog.error.portNumberException = Porta do registro RPTools não é numérico?\! Erro no servidor web?
ServerDialog.error.server = Você deve digitar um nome de servidor ou endereço IP.
ServerDialog.error.serverNotFound = Servidor "{0}" não encontrado.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = Você deve digitar uma porta numérica.
ServerDialog.error.port.outOfRange = O intervalo de portas deve estar entre 1 e 65535.
ServerDialog.error.port.outOfRange = O intervalo de portas deve estar entre 0 e 65535.
ServerDialog.error.portNumberException = Porta do registro RPTools não é numérico?\! Erro no servidor web?
ServerDialog.error.server = Você deve digitar um nome de servidor ou endereço IP.
ServerDialog.error.serverNotFound = Servidor "{0}" não encontrado.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Dark
Preferences.combo.themes.filter.light = Light

ServerDialog.error.port = Вы должны ввести номер порта.
ServerDialog.error.port.outOfRange = Диапазон портов должен быть от 1 до 65535.
ServerDialog.error.port.outOfRange = Диапазон портов должен быть от 0 до 65535.
ServerDialog.error.portNumberException = Порт из реестра RPTools не числовой? Ошибка веб-сервера?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Сервер\: {0} не найден.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Preferences.label.loadMRU = Load last campaign on start
Preferences.label.loadMRU.tooltip = Start MapTool with the last campaign you were using

ServerDialog.error.port = Вы должны ввести номер порта.
ServerDialog.error.port.outOfRange = Диапазон портов должен быть от 1 до 65535.
ServerDialog.error.port.outOfRange = Диапазон портов должен быть от 0 до 65535.
ServerDialog.error.portNumberException = Порт из реестра RPTools не числовой? Ошибка веб-сервера?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Сервер\: {0} не найден.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Preferences.combo.themes.filter.dark = Dark
Preferences.combo.themes.filter.light = Light

ServerDialog.error.port = You must enter a numeric port.
ServerDialog.error.port.outOfRange = Port range must be between 1 and 65535.
ServerDialog.error.port.outOfRange = Port range must be between 0 and 65535.
ServerDialog.error.portNumberException = Port from RPTools registry is not numeric?\! Web server bug?
ServerDialog.error.server = You must enter a server name or IP address.
ServerDialog.error.serverNotFound = Server "{0}" not found.
Expand Down
Loading

0 comments on commit ae51b9f

Please sign in to comment.