mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 02:59:10 +08:00
Merge branch 'dev' of https://github.com/v2board/v2board into dev
This commit is contained in:
commit
43f1dbaedb
@ -117,16 +117,7 @@ class ClientController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Subscription link
|
// Subscription link
|
||||||
$subsURL = 'http';
|
$subsURL = config('v2board.subscribe_url', config('v2board.app_url', env('APP_URL'))) . '/api/v1/client/subscribe?token=' . $user['token'];
|
||||||
if (isset( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) == 'on') {
|
|
||||||
$subsURL .= 's';
|
|
||||||
}
|
|
||||||
$subsURL .= '://';
|
|
||||||
if ($_SERVER['SERVER_PORT'] != ('80' || '443')) {
|
|
||||||
$subsURL .= $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];
|
|
||||||
} else {
|
|
||||||
$subsURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$config = str_replace('$subs_link', $subsURL, $config);
|
$config = str_replace('$subs_link', $subsURL, $config);
|
||||||
$config = str_replace('$proxies', $proxies, $config);
|
$config = str_replace('$proxies', $proxies, $config);
|
||||||
@ -170,16 +161,7 @@ class ClientController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Subscription link
|
// Subscription link
|
||||||
$subsURL = 'http';
|
$subsURL = config('v2board.subscribe_url', config('v2board.app_url', env('APP_URL'))) . '/api/v1/client/subscribe?token=' . $user['token'];
|
||||||
if (isset( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) == 'on') {
|
|
||||||
$subsURL .= 's';
|
|
||||||
}
|
|
||||||
$subsURL .= '://';
|
|
||||||
if ($_SERVER['SERVER_PORT'] != ('80' || '443')) {
|
|
||||||
$subsURL .= $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'];
|
|
||||||
} else {
|
|
||||||
$subsURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
|
|
||||||
}
|
|
||||||
|
|
||||||
$config = str_replace('$subs_link', $subsURL, $config);
|
$config = str_replace('$subs_link', $subsURL, $config);
|
||||||
$config = str_replace('$proxies', $proxies, $config);
|
$config = str_replace('$proxies', $proxies, $config);
|
||||||
|
@ -13,7 +13,7 @@ http-listen = 0.0.0.0:6152
|
|||||||
socks5-listen = 0.0.0.0:6153
|
socks5-listen = 0.0.0.0:6153
|
||||||
|
|
||||||
test-timeout = 4
|
test-timeout = 4
|
||||||
network-framework = true
|
network-framework = false
|
||||||
proxy-test-url = http://www.gstatic.com/generate_204
|
proxy-test-url = http://www.gstatic.com/generate_204
|
||||||
|
|
||||||
external-controller-access = surgepasswd@0.0.0.0:6170
|
external-controller-access = surgepasswd@0.0.0.0:6170
|
||||||
|
Loading…
Reference in New Issue
Block a user