better types for Udp interface
This commit is contained in:
parent
ce4d4032ca
commit
4bd24867cc
1 changed files with 2 additions and 2 deletions
|
|
@ -21,8 +21,8 @@ struct TcpClientConfig {
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||||
struct UdpConfig {
|
struct UdpConfig {
|
||||||
bind_addr: String,
|
bind_addr: std::net::SocketAddrV4,
|
||||||
forward_addr: Option<String>,
|
forward_addr: Option<std::net::SocketAddrV4>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue