From 5e87a453df1a9cb1235e2657f0dffb3cb66b0c11 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 4 May 2021 19:29:45 +0000 Subject: feat(redirect_id): specify custom ip in config Adds the abiltiy to specify a custom IP in the Whirl.toml BREAKING CHANGE: This feature updates the configuration file format, update your Whirl.toml per the repository example. --- src/server/cmd/commands/redirect_id.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/cmd') diff --git a/src/server/cmd/commands/redirect_id.rs b/src/server/cmd/commands/redirect_id.rs index ebfa95b..fdcf859 100644 --- a/src/server/cmd/commands/redirect_id.rs +++ b/src/server/cmd/commands/redirect_id.rs @@ -29,7 +29,7 @@ impl Creatable for RedirectId { command.put_u16(self.room_number as u16); // Room ID // IP - for byte in "0.0.0.0".split('.') { + for byte in Config::get().unwrap().whirlsplash.ip.split('.') { command.put_u8(byte.parse::().unwrap()); } command.put_u16(Config::get().unwrap().hub.port as u16); // Port -- cgit v1.2.3