File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ enum Commands {
74
74
#[ arg( long, group = "display_args" ) ]
75
75
display : bool ,
76
76
77
+ /// API and conncheck environment to use, such as `mullvad.net` or `stagemole.eu`.
78
+ /// The domain name will be prefixed with `api.` and `ipv4.am.i.`
79
+ #[ arg( long) ]
80
+ environment : Option < String > ,
81
+
77
82
/// Run VNC server on a specified port
78
83
#[ arg( long, group = "display_args" ) ]
79
84
vnc : Option < u16 > ,
@@ -236,6 +241,7 @@ async fn main() -> Result<()> {
236
241
Commands :: RunTests {
237
242
vm,
238
243
display,
244
+ environment,
239
245
vnc,
240
246
account,
241
247
app_package,
@@ -256,6 +262,10 @@ async fn main() -> Result<()> {
256
262
( true , true ) => unreachable ! ( "invalid combination" ) ,
257
263
} ;
258
264
265
+ if let Some ( environment) = environment {
266
+ // Override environment using flag
267
+ config. mullvad_host = Some ( environment) ;
268
+ }
259
269
let mullvad_host = config. get_host ( ) ;
260
270
log:: debug!( "Mullvad host: {mullvad_host}" ) ;
261
271
You can’t perform that action at this time.
0 commit comments