Skip to content

Commit c23b139

Browse files
authored
Merge pull request #41 from JFreegman/master
Add a method to disable LAN in tox options
2 parents f3f346f + 811bd27 commit c23b139

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core.rs

+6
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,12 @@ impl ToxOptions {
471471
self
472472
}
473473

474+
/// Disable UDP
475+
pub fn no_lan(mut self) -> ToxOptions {
476+
self.raw.local_discovery_enabled = false;
477+
self
478+
}
479+
474480
/*
475481
/// Use a proxy
476482
pub fn proxy(mut self, ty: ProxyType, addr: &str, port: u16) -> ToxOptions {

0 commit comments

Comments
 (0)