You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
We have the following logics in a NetworkController class initialisation section. Here we validate declaredAddress setting and warn about the validation exceptions, but we don't use the boolean result of the validation that looks weird.
Maybe the goal here is just to emit a warning that declaredAddress is badly configured. If this is the case, then maybe we should use log.warn instead of log.error.
Then we don't need (settings.upnpEnabled && myAddrs.exists(_ == upnp.externalAddress)) check and NetworkInterface.getNetworkInterfaces.asScala.exists should be NetworkInterface.getNetworkInterfaces.asScala.foreach
By the way myAddrs.exists(_ == upnp.externalAddress) is never true as upnp.externalAddress is Option and it could not ever equal to InetAddress
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We have the following logics in a
NetworkController
class initialisation section. Here we validatedeclaredAddress
setting and warn about the validation exceptions, but we don't use the boolean result of the validation that looks weird.This is line 62, https://github.com/ScorexFoundation/Scorex/blob/master/src/main/scala/scorex/core/network/NetworkController.scala#L62
The text was updated successfully, but these errors were encountered: