示例#1
0
        protected IO.Options CreateOptionsSecure()
        {
            var log = LogManager.GetLogger(Global.CallerName());

            var config  = ConfigBase.Load();
            var options = new IO.Options();

            options.Port     = config.server.ssl_port;
            options.Hostname = config.server.hostname;
            log.Info("Please add to your hosts file: 127.0.0.1 " + options.Hostname);
            options.Secure = true;
            options.IgnoreServerCertificateValidation = true;
            return(options);
        }
示例#2
0
        protected IO.Options CreateOptions()
        {
            var log = LogManager.GetLogger(Global.CallerName());


            var config  = ConfigBase.Load();
            var options = new IO.Options();

            options.Hostname = config.server.hostname;
            options.ForceNew = true;
            options.Secure   = true;
            options.Port     = options.Secure ? 443 : 8080;
            //log.Info("Please add to your hosts file: 127.0.0.1 " + options.Hostname);
            options.Reconnection = true;
            return(options);
        }