diff --git a/src/Services/Subscribe/SS.php b/src/Services/Subscribe/SS.php index f4a20522e..7229da545 100755 --- a/src/Services/Subscribe/SS.php +++ b/src/Services/Subscribe/SS.php @@ -20,9 +20,11 @@ final class SS extends Base } $nodes_raw = Subscribe::getUserNodes($user); - $node_custom_config = json_decode($nodes_raw->custom_config, true); foreach ($nodes_raw as $node_raw) { + + $node_custom_config = json_decode($node_raw->custom_config, true); + if ((int) $node_raw->sort === 0) { $links .= base64_encode($user->method . ':' . $user->passwd . '@' . $node_raw->server . ':' . (int) $node_custom_config['offset_port_user']) . '#' . $node_raw->name . PHP_EOL;