Skip to content

Commit 5c32f8f

Browse files
author
zhangjiangbin
committed
日常开发
1 parent 9c66832 commit 5c32f8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Http/Controllers/SubscribeController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function index(Request $request, $code)
8585
$ssr_str .= $node->server . ':' . ($node->single ? $node->single_port : $user->port);
8686
$ssr_str .= ':' . ($node->single ? $node->single_protocol : $user->protocol) . ':' . ($node->single ? $node->single_method : $user->method);
8787
$ssr_str .= ':' . ($node->single ? $node->single_obfs : $user->obfs) . ':' . ($node->single ? $this->base64url_encode($node->single_passwd) : $this->base64url_encode($user->passwd));
88-
$ssr_str .= '/?obfsparam=' . $this->base64url_encode($obfs_param);
88+
$ssr_str .= '/?obfsparam=' . ($node->single ? '' : $this->base64url_encode($obfs_param));
8989
$ssr_str .= '&protoparam=' . ($node->single ? $this->base64url_encode($user->port . ':' . $user->passwd) : $this->base64url_encode($protocol_param));
9090
$ssr_str .= '&remarks=' . $this->base64url_encode($node->name);
9191
$ssr_str .= '&group=' . $this->base64url_encode('VPN');

app/Http/Controllers/UserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function index(Request $request)
8787
$ssr_str .= $node->server . ':' . ($node->single ? $node->single_port : $user->port);
8888
$ssr_str .= ':' . ($node->single ? $node->single_protocol : $user->protocol) . ':' . ($node->single ? $node->single_method : $user->method);
8989
$ssr_str .= ':' . ($node->single ? $node->single_obfs : $user->obfs) . ':' . ($node->single ? $this->base64url_encode($node->single_passwd) : $this->base64url_encode($user->passwd));
90-
$ssr_str .= '/?obfsparam=' . $this->base64url_encode($obfs_param);
90+
$ssr_str .= '/?obfsparam=' . ($node->single ? '' : $this->base64url_encode($obfs_param));
9191
$ssr_str .= '&protoparam=' . ($node->single ? $this->base64url_encode($user->port . ':' . $user->passwd) : $this->base64url_encode($protocol_param));
9292
$ssr_str .= '&remarks=' . $this->base64url_encode($node->name);
9393
$ssr_str .= '&group=' . $this->base64url_encode('VPN');

0 commit comments

Comments
 (0)