fixed https,httpps opts undefine fault