Skip to content

Commit 14cc991

Browse files
Agent/DNS: set default implementation for server_ip method
1 parent 3e86700 commit 14cc991

File tree

1 file changed

+3
-1
lines changed
  • drasyl-agent/src/agent/dns

1 file changed

+3
-1
lines changed

drasyl-agent/src/agent/dns/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ use tun_rs::AsyncDevice;
88
use url::Url;
99

1010
pub trait AgentDnsInterface {
11-
fn server_ip(&self) -> Option<Ipv4Addr>;
11+
fn server_ip(&self) -> Option<Ipv4Addr> {
12+
None
13+
}
1214

1315
#[allow(unused_variables)]
1416
fn is_server_ip(&self, ip: Ipv4Addr) -> bool {

0 commit comments

Comments
 (0)