From a87cdc1993ff43fc6c0b0d97a6b2e89f824ce286 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Wed, 17 Apr 2019 14:23:34 +0100 Subject: [PATCH] Changed default server address to 'server.veloren.net' Former-commit-id: 660083d3d7ca341428b8c3cd8d54dd3ac1f453ab --- voxygen/src/main.rs | 3 +++ voxygen/src/menu/main/ui.rs | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/voxygen/src/main.rs b/voxygen/src/main.rs index b31bef5e61..ffd3e9c593 100644 --- a/voxygen/src/main.rs +++ b/voxygen/src/main.rs @@ -31,6 +31,9 @@ use crate::{ settings::Settings }; +/// The URL of the default public server that Voxygen will connect to +const DEFAULT_PUBLIC_SERVER: &'static str = "server.veloren.net"; + /// A type used to store state that is shared between all play states pub struct GlobalState { settings: Settings, diff --git a/voxygen/src/menu/main/ui.rs b/voxygen/src/menu/main/ui.rs index c5e7f83504..b20266a93c 100644 --- a/voxygen/src/menu/main/ui.rs +++ b/voxygen/src/menu/main/ui.rs @@ -1,4 +1,5 @@ use crate::{ + DEFAULT_PUBLIC_SERVER, render::Renderer, ui::{self, ScaleMode, Ui}, window::Window, @@ -137,7 +138,7 @@ impl MainMenuUi { font_metamorph, font_opensans, username: "Username".to_string(), - server_address: "veloren.mac94.de".to_string(), + server_address: DEFAULT_PUBLIC_SERVER.to_string(), login_error: None, connecting: None, }