proper relay switch, fix wasm
This commit is contained in:
@@ -15,6 +15,11 @@ impl Default for NetworkClass {
|
||||
}
|
||||
|
||||
impl NetworkClass {
|
||||
// Must an inbound relay be kept available?
|
||||
// In the case of InboundCapable, it is left up to the class of each DialInfo to determine if an inbound relay is required
|
||||
pub fn inbound_wants_relay(&self) -> bool {
|
||||
matches!(self, Self::OutboundOnly | Self::WebApp)
|
||||
}
|
||||
// Should an outbound relay be kept available?
|
||||
pub fn outbound_wants_relay(&self) -> bool {
|
||||
matches!(self, Self::WebApp)
|
||||
|
Reference in New Issue
Block a user