Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Commit

Permalink
Fixed #427
Browse files Browse the repository at this point in the history
Looks like people weren't always updating their config files and the new listen option wasn't getting populated, which was causing problems (like #427). This makes that config option optional.
  • Loading branch information
plamoni committed Feb 9, 2013
1 parent 6e3ce4d commit 6fbc096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/siriproxy.rb
Expand Up @@ -15,8 +15,9 @@ def initialize()
$LOG_LEVEL = $APP_CONFIG.log_level.to_i
EventMachine.run do
begin
puts "Starting SiriProxy on #{$APP_CONFIG.listen}:#{$APP_CONFIG.port}.."
EventMachine::start_server($APP_CONFIG.listen, $APP_CONFIG.port, SiriProxy::Connection::Iphone) { |conn|
listen_addr = $APP_CONFIG.listen || "0.0.0.0"
puts "Starting SiriProxy on #{listen_addr}:#{$APP_CONFIG.port}.."
EventMachine::start_server(listen_addr, $APP_CONFIG.port, SiriProxy::Connection::Iphone) { |conn|
$stderr.puts "start conn #{conn.inspect}"
conn.plugin_manager = SiriProxy::PluginManager.new()
conn.plugin_manager.iphone_conn = conn
Expand Down
2 changes: 1 addition & 1 deletion lib/siriproxy/version.rb
@@ -1,3 +1,3 @@
class SiriProxy
VERSION = "0.3.2"
VERSION = "0.3.3"
end

0 comments on commit 6fbc096

Please sign in to comment.