|
|
@ -48,7 +48,7 @@ module.exports = class FakeServersCenter {
|
|
|
|
getServerPromise (hostname, port, ssl, manualCompatibleConfig) {
|
|
|
|
getServerPromise (hostname, port, ssl, manualCompatibleConfig) {
|
|
|
|
if (port === 443 || port === 80) {
|
|
|
|
if (port === 443 || port === 80) {
|
|
|
|
ssl = port === 443
|
|
|
|
ssl = port === 443
|
|
|
|
} else {
|
|
|
|
} else if (ssl) {
|
|
|
|
// 兼容程序:1
|
|
|
|
// 兼容程序:1
|
|
|
|
const compatibleConfig = compatible.getConnectCompatibleConfig(hostname, port, manualCompatibleConfig)
|
|
|
|
const compatibleConfig = compatible.getConnectCompatibleConfig(hostname, port, manualCompatibleConfig)
|
|
|
|
if (compatibleConfig && compatibleConfig.ssl != null) {
|
|
|
|
if (compatibleConfig && compatibleConfig.ssl != null) {
|
|
|
|