mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 09:05:33 +00:00
remove unwrap method
This commit is contained in:
parent
fbc80843c7
commit
3014db81e7
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ async fn main() -> Result<()> {
|
||||||
SessionOptions {
|
SessionOptions {
|
||||||
listen: Some(match config.listen {
|
listen: Some(match config.listen {
|
||||||
Some(l) => ListenerOptions {
|
Some(l) => ListenerOptions {
|
||||||
listen_addr: std::net::SocketAddr::from_str(&l).unwrap(),
|
listen_addr: std::net::SocketAddr::from_str(&l)?,
|
||||||
enable_upnp_port_forwarding: config.listen_upnp,
|
enable_upnp_port_forwarding: config.listen_upnp,
|
||||||
..ListenerOptions::default()
|
..ListenerOptions::default()
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue