Browse Source

fix: v2ray advance config

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

+ 9 - 0
app/Services/ServerService.php

@@ -319,6 +319,15 @@ class ServerService
             if (!empty($server[$i]['tags'])) {
                 $server[$i]['tags'] = json_decode($server[$i]['tags']);
             }
+            if (!empty($server[$i]['dnsSettings'])) {
+                $server[$i]['dnsSettings'] = json_decode($server[$i]['dnsSettings']);
+            }
+            if (!empty($server[$i]['tlsSettings'])) {
+                $server[$i]['tlsSettings'] = json_decode($server[$i]['tlsSettings']);
+            }
+            if (!empty($server[$i]['ruleSettings'])) {
+                $server[$i]['ruleSettings'] = json_decode($server[$i]['ruleSettings']);
+            }
             $server[$i]['group_id'] = json_decode($server[$i]['group_id']);
             $server[$i]['online'] = Cache::get(CacheKey::get('SERVER_V2RAY_ONLINE_USER', $server[$i]['parent_id'] ? $server[$i]['parent_id'] : $server[$i]['id']));
             if ($server[$i]['parent_id']) {

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