Commit 603b7f5 1 parent 0289ad3 commit 603b7f5 Copy full SHA for 603b7f5
File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -331,9 +331,9 @@ func runBypassCheck(config Config) error {
331
331
fmt .Printf ("\n Starting testing domains: %s\n " , config .targetDomain )
332
332
fmt .Println ("------------------------------------------------" )
333
333
334
+ needBypass := false
334
335
// Check DPI for each domain
335
336
for _ , domain := range domains {
336
- // Remove port before DPI check but keep it for display
337
337
domainForCheck := strings .Split (domain , ":" )[0 ]
338
338
fmt .Printf ("\n Checking DPI blocks for %s...\n " , domainForCheck )
339
339
result , err := checkDPIFingerprint (domainForCheck )
@@ -352,6 +352,13 @@ func runBypassCheck(config Config) error {
352
352
fmt .Printf ("Check internet connection and if domain %s is correct.\n " , domainForCheck )
353
353
continue
354
354
}
355
+
356
+ needBypass = true
357
+ }
358
+
359
+ if ! needBypass {
360
+ fmt .Println ("\n No DPI blocks detected for any domain. No need to test pre-configs." )
361
+ return nil
355
362
}
356
363
357
364
fmt .Println ("------------------------------------------------" )
You can’t perform that action at this time.
0 commit comments