mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-27 07:34:12 +08:00
fix(setup): fixes #175
This commit is contained in:
parent
d9cfa14cd3
commit
8242706290
@ -98,15 +98,15 @@ export default () => {
|
|||||||
|
|
||||||
if (query.has('hostname')) {
|
if (query.has('hostname')) {
|
||||||
void onSubmit({
|
void onSubmit({
|
||||||
url: `http://${query.get('hostname')}${
|
url: `${window.location.protocol}//${query.get('hostname')}${
|
||||||
query.get('port') && ':' + query.get('port')
|
query.get('port') ? `:${query.get('port')}` : ''
|
||||||
}`,
|
}`,
|
||||||
secret: query.get('secret') ?? '',
|
secret: query.get('secret') ?? '',
|
||||||
})
|
})
|
||||||
} else if (endpointList().length === 0) {
|
} else if (endpointList().length === 0) {
|
||||||
/**
|
/**
|
||||||
we only try auto login when there is nothing in endpoint list
|
we only try auto login when there is nothing in endpoint list
|
||||||
or user who is using default config wont be able to switch to another endpoint ever
|
or user who is using default config won't be able to switch to another endpoint ever
|
||||||
*/
|
*/
|
||||||
void onSubmit({
|
void onSubmit({
|
||||||
url: 'http://127.0.0.1:9090',
|
url: 'http://127.0.0.1:9090',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user