File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 33
33
34
34
- Test passing invalid -proxy
35
35
- Test passing invalid -onion
36
+ - Test passing -onlynet=onion without -proxy or -onion
36
37
"""
37
38
38
39
import socket
@@ -319,6 +320,15 @@ def networks_dict(d):
319
320
msg = "Error: Invalid -onion address or hostname: 'xyz:abc'"
320
321
self .nodes [1 ].assert_start_raises_init_error (expected_msg = msg )
321
322
323
+ msg = (
324
+ "Error: Outbound connections restricted to Tor (-onlynet=onion) but "
325
+ "the proxy for reaching the Tor network is not provided (no -proxy= "
326
+ "and no -onion= given) or it is explicitly forbidden (-onion=0)"
327
+ )
328
+ self .log .info ("Test passing -onlynet=onion without -proxy or -onion raises expected init error" )
329
+ self .nodes [1 ].extra_args = ["-onlynet=onion" ]
330
+ self .nodes [1 ].assert_start_raises_init_error (expected_msg = msg )
331
+
322
332
323
333
if __name__ == '__main__' :
324
334
ProxyTest ().main ()
You can’t perform that action at this time.
0 commit comments