Skip to content

Commit a2a455a

Browse files
added: function get_ip in udp_connection
1 parent 7116f82 commit a2a455a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/client/udp_connection.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ impl ClientConnection for ClientUDPConnection {
2626
timeout: timeout,
2727
}
2828
}
29+
/// implement get_ip
30+
/// returns IpAddr
31+
fn get_ip(&self) -> IpAddr {
32+
return self.server_addr.clone();
33+
}
2934

3035
fn send(self, dns_query:DnsMessage) -> Result<Vec<u8>, ClientError> {
3136

0 commit comments

Comments
 (0)