1 /*
2 This test file is part of the peer package rather than than the peer_test package so it can bridge access to the
3 internals to properly test cases which are either not possible or can't reliably be tested via the public interface. The
4 functions are only exported while the tests are being run.
5 */
6 package peer
7 8 // TstAllowSelfConns allows the test package to allow self connections by disabling the detection logic.
9 func TstAllowSelfConns() {
10 AllowSelfConns = true
11 }
12