add warning about QFT_USE_TIMED_HOLEPUNCH
This commit is contained in:
parent
49a1782b11
commit
761831460f
1 changed files with 3 additions and 0 deletions
|
@ -429,6 +429,9 @@ fn holepunch(args: &Vec<String>) -> UdpSocket {
|
||||||
.set_write_timeout(Some(Duration::from_secs(1)))
|
.set_write_timeout(Some(Duration::from_secs(1)))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
if env::var("QFT_USE_TIMED_HOLEPUNCH").is_ok() {
|
if env::var("QFT_USE_TIMED_HOLEPUNCH").is_ok() {
|
||||||
|
println!("Warning: You are using the QFT_USE_TIMED_HOLEPUNCH environment variable. This won't allow for more \
|
||||||
|
backwards-compatibility, rather it only exists as a fallback for bad connections. Please make absolutely \
|
||||||
|
sure your partner uses QFT_USE_TIMED_HOLEPUNCH as well, data might otherwise get corrupted on the receiver.");
|
||||||
println!("Waiting...");
|
println!("Waiting...");
|
||||||
let mut stop = false;
|
let mut stop = false;
|
||||||
while !stop {
|
while !stop {
|
||||||
|
|
Loading…
Add table
Reference in a new issue