diff options
| author | Fuwn <[email protected]> | 2021-05-06 11:39:59 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-06 11:39:59 +0000 |
| commit | 1643fb945fd5d7951578159124b15e072958adc2 (patch) | |
| tree | 3e4f163c71d69ba007c32407419cff5adbbd4f10 /src/server/cmd | |
| parent | refactor(server): clippy: module inception (diff) | |
| download | whirl-1643fb945fd5d7951578159124b15e072958adc2.tar.xz whirl-1643fb945fd5d7951578159124b15e072958adc2.zip | |
fix(docker): the dockering
Fix Docker functionalities.
Diffstat (limited to 'src/server/cmd')
| -rw-r--r-- | src/server/cmd/commands/property/create.rs | 6 | ||||
| -rw-r--r-- | src/server/cmd/commands/redirect_id.rs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/server/cmd/commands/property/create.rs b/src/server/cmd/commands/property/create.rs index e4c4eb2..9908b27 100644 --- a/src/server/cmd/commands/property/create.rs +++ b/src/server/cmd/commands/property/create.rs @@ -59,7 +59,7 @@ pub fn create_property_update_as_distributor() -> Vec<u8> { }, NetworkProperty { prop_id: VAR_APPNAME, - value: Config::get().unwrap().whirlsplash.worldsmaster_username, + value: Config::get().whirlsplash.worldsmaster_username, }, ], ) @@ -100,7 +100,7 @@ pub fn create_property_update_as_hub() -> Vec<u8> { }, NetworkProperty { prop_id: VAR_APPNAME, - value: Config::get().unwrap().whirlsplash.worldsmaster_username, + value: Config::get().whirlsplash.worldsmaster_username, }, ], ) @@ -117,7 +117,7 @@ pub fn create_property_request_as_distributor() -> Vec<u8> { }, NetworkProperty { prop_id: VAR_APPNAME, - value: Config::get().unwrap().whirlsplash.worldsmaster_username, + value: Config::get().whirlsplash.worldsmaster_username, }, NetworkProperty { prop_id: VAR_PROTOCOL, diff --git a/src/server/cmd/commands/redirect_id.rs b/src/server/cmd/commands/redirect_id.rs index fdcf859..e6d3ddd 100644 --- a/src/server/cmd/commands/redirect_id.rs +++ b/src/server/cmd/commands/redirect_id.rs @@ -29,10 +29,10 @@ impl Creatable for RedirectId { command.put_u16(self.room_number as u16); // Room ID // IP - for byte in Config::get().unwrap().whirlsplash.ip.split('.') { + for byte in Config::get().whirlsplash.ip.split('.') { command.put_u8(byte.parse::<u8>().unwrap()); } - command.put_u16(Config::get().unwrap().hub.port as u16); // Port + command.put_u16(Config::get().hub.port as u16); // Port // Length let mut command_as_vec = command.to_vec(); |