Skip to content

Commit 4fc07e9

Browse files
committed
update server type conversion
1 parent c8d358f commit 4fc07e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/net/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn compose_server(
8585
geo: GeoInfo::from(status_res.settings()),
8686
};
8787

88-
match server.server_type() {
88+
match ServerType::from_version(&version) {
8989
ServerType::QtvServer => Server::Qtv(QtvServer::from(&server)),
9090
ServerType::GameServer => Server::Game(GameServer::from(&server)),
9191
ServerType::ProxyServer => Server::Proxy(ProxyServer::from(&server)),

0 commit comments

Comments
 (0)