mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
peertube auth add wants a URL (and not a host)
This commit is contained in:
@@ -39,7 +39,7 @@ async function setInstance (url: string, username: string, password: string, isD
|
||||
}
|
||||
|
||||
function isURLaPeerTubeInstance (url: string) {
|
||||
return isHostValid(url) || (url.includes('localhost'))
|
||||
return url.startsWith('http://') || url.startsWith('https://')
|
||||
}
|
||||
|
||||
program
|
||||
@@ -61,6 +61,7 @@ program
|
||||
url: {
|
||||
description: 'instance url',
|
||||
conform: (value) => isURLaPeerTubeInstance(value),
|
||||
message: 'It should be an URL (https://peertube.example.com)',
|
||||
required: true
|
||||
},
|
||||
username: {
|
||||
|
||||
Reference in New Issue
Block a user