Skip to content

Commit

Permalink
fix bug: 链路表!
Browse files Browse the repository at this point in the history
  • Loading branch information
Anankke authored Mar 3, 2020
2 parents d1e1862 + ea2d015 commit 4f70cd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/Admin/RelayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,15 +294,15 @@ static function ($query) use ($user) {
)->get();

foreach ($nodes as $node) {
if ($node->mu_only == 0) {
if ($node->mu_only == 0 || $node->mu_only == -1) {
$relay_rule = Tools::pick_out_relay_rule($node->id, $user->port, $relay_rules);

if ($relay_rule != null) {
$pathset = Tools::insertPathRule($relay_rule, $pathset, $user->port);
}
}

if ($node->custom_rss == 1) {
if ($node->custom_rss == 1 || $node->mu_only == -1) {
foreach ($mu_nodes as $mu_node) {
$mu_user = User::where('port', '=', $mu_node->server)->first();

Expand Down
4 changes: 2 additions & 2 deletions src/Controllers/RelayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ static function ($query) use ($user) {
)->get();

foreach ($nodes as $node) {
if ($node->mu_only == 0) {
if ($node->mu_only == 0 || $node->mu_only == -1) {
$relay_rule = Tools::pick_out_relay_rule($node->id, $user->port, $relay_rules);

if ($relay_rule != null) {
$pathset = Tools::insertPathRule($relay_rule, $pathset, $user->port);
}
}

if ($node->custom_rss == 1) {
if ($node->custom_rss == 1 || $node->mu_only == -1) {
foreach ($mu_nodes as $mu_node) {
$mu_user = User::where('port', '=', $mu_node->server)->first();

Expand Down

0 comments on commit 4f70cd4

Please sign in to comment.