Show
Ignore:
Timestamp:
05/07/08 22:03:43 (8 months ago)
Author:
tomoyo
Message:

とりあえずCLI版でプロクシに対応してみた。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • TwitterIrcGateway/TwitterIrcGatewayCLI/Program.cs

    r369 r376  
    6060            _server.BroadcastUpdateMessageIsNotice = options.BroadcastUpdateMessageIsNotice; 
    6161            _server.SessionStartedRecieved += new EventHandler<SessionStartedEventArgs>(_server_SessionStartedRecieved); 
     62            _server.Proxy = new WebProxy(options.Proxy); 
    6263 
    6364            Console.WriteLine("Start TwitterIrcGateway Server v{0}", typeof(Server).Assembly.GetName().Version); 
     
    7980            Console.WriteLine("[Configuration] ClientMessageWait: {0}", _server.ClientMessageWait); 
    8081            Console.WriteLine("[Configuration] BroadcatUpdateMessageIsNotice: {0}", _server.BroadcastUpdateMessageIsNotice); 
     82            Console.WriteLine("[Configuration] Proxy: {0}", _server.Proxy); 
    8183 
    8284            _server.Start(bindAddress, options.Port); 
     
    172174        [Description("broadcast status message type is NOTICE")] 
    173175        public Boolean BroadcastUpdateMessageIsNotice { get; set; } 
     176 
     177        [DefaultValue("")] 
     178        [Description("web proxy url")] 
     179        public String Proxy { get; set; } 
    174180    } 
    175181}