Просмотр исходного кода

BUG 修复获取Trojan节点的连接端口固定为10053端口的问题

Bob 4 лет назад
Родитель
Сommit
c507603495
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Models/Node.php

+ 1 - 1
app/Models/Node.php

@@ -150,7 +150,7 @@ class Node extends Model
             case 3:
                 $config = array_merge($config, [
                     'type'   => 'trojan',
-                    'port'   => $this->is_relay ? $this->relay_port : $this->v2_port,
+                    'port'   => $this->is_relay ? $this->relay_port : $this->port,
                     'passwd' => $user->passwd,
                     'sni'    => $this->is_relay ? $this->server : '',
                     'udp'    => $this->is_udp,