Change default port of veloren from 59003 to 14004

TCP and UDP Ports for applications should lie in a range between 1024-49151
the ports below are used for privileged services
the ports above should be dynamicly assigned.
Port 14004 seems to be used by no other service and i like it personally, so we choose it.

Also deactivate the workaround for the secondary veloren server again
This commit is contained in:
Marcel Märtens 2019-07-20 13:59:35 +02:00
parent 44b3f67347
commit 98b0a40a22
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ pub struct ServerSettings {
impl Default for ServerSettings {
fn default() -> Self {
Self {
address: SocketAddr::from(([0; 4], 59003)),
address: SocketAddr::from(([0; 4], 14004)),
world_seed: 1337,
server_name: "Server name".to_owned(),
server_description: "This is the best Veloren server.".to_owned(),

View File

@ -24,7 +24,7 @@ impl MainMenuState {
}
}
const DEFAULT_PORT: u16 = 59003;
const DEFAULT_PORT: u16 = 14004;
impl PlayState for MainMenuState {
fn play(&mut self, _: Direction, global_state: &mut GlobalState) -> PlayStateResult {

View File

@ -101,7 +101,7 @@ impl Default for NetworkingSettings {
fn default() -> Self {
Self {
username: "Username".to_string(),
servers: vec!["server.veloren.net:38889".to_string()],
servers: vec!["server.veloren.net".to_string()],
default_server: 0,
}
}