mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-04-02 10:05:30 +00:00
implement bind option
This commit is contained in:
parent
3f549e2077
commit
4646500b66
3 changed files with 14 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ async fn main() -> Result<()> {
|
|||
None => PathBuf::new(),
|
||||
},
|
||||
SessionOptions {
|
||||
bind_device_name: config.bind,
|
||||
listen: match config.listen {
|
||||
Some(l) => Some(ListenerOptions {
|
||||
listen_addr: std::net::SocketAddr::from_str(&l)?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue