Browse Source

fix dns port string to int

Tokumeikoi 5 years ago
parent
commit
1b3833173d
2 changed files with 0 additions and 6 deletions
  1. 0 6
      app/Services/ServerService.php
  2. 0 0
      public/assets/admin/umi.js

+ 0 - 6
app/Services/ServerService.php

@@ -59,12 +59,6 @@ class ServerService
                 array_push($dns->servers, '1.1.1.1');
                 array_push($dns->servers, 'localhost');
             }
-            $dns->servers = array_map(function ($v) {
-               if (is_object($v)) {
-                   $v->port = (int)$v->port;
-               }
-               return $v;
-            }, $dns->servers);
             $json->dns = $dns;
             $json->outbound->settings->domainStrategy = 'UseIP';
         }

File diff suppressed because it is too large
+ 0 - 0
public/assets/admin/umi.js


Some files were not shown because too many files changed in this diff