mirror of
https://github.com/bolucat/Archive.git
synced 2025-10-27 10:10:48 +08:00
Update On Fri Jan 3 19:34:59 CET 2025
This commit is contained in:
@@ -237,7 +237,7 @@ pub async fn create_outbound_udp_socket(af: AddrFamily, config: &ConnectOpts) ->
|
||||
}
|
||||
|
||||
/// Create a `UdpSocket` binded to `bind_addr`
|
||||
pub async fn bind_outbound_udp_socket(bind_addr: &SocketAddr, _config: &ConnectOpts) -> io::Result<UdpSocket> {
|
||||
pub async fn bind_outbound_udp_socket(bind_addr: &SocketAddr, config: &ConnectOpts) -> io::Result<UdpSocket> {
|
||||
let af = AddrFamily::from(bind_addr);
|
||||
|
||||
let socket = if af != AddrFamily::Ipv6 {
|
||||
|
||||
Reference in New Issue
Block a user