Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Catch UnknownHostExceptions in legacy ping passthrough pings (#4331)
* Catch unknownhostexception to avoid network errors when using legacy ping passthrough * Catch UnknownHostException separately, log a warning but no stacktrace
Dieser Commit ist enthalten in:
Ursprung
3971650856
Commit
1499def4a3
@ -139,6 +139,9 @@ public class GeyserLegacyPingPassthrough implements IGeyserPingPassthrough, Runn
|
|||||||
this.geyser.getLogger().debug("Connection timeout for ping passthrough.");
|
this.geyser.getLogger().debug("Connection timeout for ping passthrough.");
|
||||||
} catch (JsonParseException | JsonMappingException ex) {
|
} catch (JsonParseException | JsonMappingException ex) {
|
||||||
this.geyser.getLogger().error("Failed to parse json when pinging server!", ex);
|
this.geyser.getLogger().error("Failed to parse json when pinging server!", ex);
|
||||||
|
} catch (UnknownHostException ex) {
|
||||||
|
// Don't reset pingInfo, as we want to keep the last known value
|
||||||
|
this.geyser.getLogger().warning("Unable to resolve remote host! Is the remote server down or invalid?");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
this.geyser.getLogger().error("IO error while trying to use legacy ping passthrough", e);
|
this.geyser.getLogger().error("IO error while trying to use legacy ping passthrough", e);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren