mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
parent
44b3f67347
commit
98b0a40a22
@ -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(),
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user