Now trimming server address to strip leading/trailing spaces

This commit is contained in:
RaphiMC 2023-01-09 21:17:41 +01:00
parent 6e1ea9b74b
commit ca064e157b
2 changed files with 2 additions and 2 deletions

View File

@ -6,4 +6,4 @@ org.gradle.configureondemand=true
# Project properties
maven_name=ViaProxy
maven_group=net.raphimc
maven_version=3.0.4
maven_version=3.0.5

View File

@ -147,7 +147,7 @@ public class GeneralTab extends AUITab {
this.stateButton.setText("Starting...");
new Thread(() -> {
final String serverAddress = this.serverAddress.getText();
final String serverAddress = this.serverAddress.getText().trim();
final VersionEnum serverVersion = (VersionEnum) this.serverVersion.getSelectedItem();
final int bindPort = (int) this.bindPort.getValue();
final int authMethod = this.authMethod.getSelectedIndex();