mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-23 14:43:09 +01:00
Minor fixes
This commit is contained in:
1 parent
c86a1a50bd
commit
9efe6cfb39
4 files changed
+8
-2
No files matched your search
@@ -1180,10 +1180,13 @@ const internalCertificate = {
|
||||
} else if (`${result.responsecode}` === '200' && result.htmlresponse === 'Success') {
|
||||
// Server exists and has responded with the correct data
|
||||
return 'ok';
|
||||
} else if (`${result.responsecode}` === '200') {
|
||||
// Server exists and has responded with the correct data
|
||||
return 'wrong-data';
|
||||
} else if (`${result.responsecode}` === '404') {
|
||||
// Server exists but responded with a 404
|
||||
return '404';
|
||||
} else if (`${result.responsecode}` === '0' || result.reason.toLowerCase() === 'host unavailable') {
|
||||
} else if (`${result.responsecode}` === '0' || (typeof result.reason === 'string' && result.reason.toLowerCase() === 'host unavailable')) {
|
||||
// Server does not exist at domain
|
||||
return 'no-host';
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user