From 9563218c739880be124c7ead3492f4eb1ec073ac Mon Sep 17 00:00:00 2001 From: Denver Gingerich Date: Sat, 1 Aug 2020 19:18:33 +0000 Subject: [PATCH] revert 7adf7d6 - jmp-fwdcalls plugover demands it While this localhost hardcoding would work fine if sgx-bwmsgsv2 was run on its own, it usually isn't. Instead, it is run as a plugover (see https://gitlab.com/ossguy/jmp-fwdcalls/commit/08d3acc for details), and because the voice endpoint that jmp-fwdcalls responds to is public (so our carrier can deliver voice-related requests directly to it), we need the whole endpoint to be public, even though the requests delivered to sgx-bwmsgsv2 don't require that. --- sgx-bwmsgsv2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgx-bwmsgsv2.rb b/sgx-bwmsgsv2.rb index e22868044ef45dd3c02ff3b16662f01a1aedf3de..2db2375d00967be79a82d07830f72802a925cb77 100755 --- a/sgx-bwmsgsv2.rb +++ b/sgx-bwmsgsv2.rb @@ -1083,7 +1083,7 @@ at_exit do SGXbwmsgsv2.write(msg) end - server = Goliath::Server.new('127.0.0.1', ARGV[5].to_i) + server = Goliath::Server.new('0.0.0.0', ARGV[5].to_i) server.api = WebhookHandler.new server.app = Goliath::Rack::Builder.build(server.api.class, server.api) server.logger = Log4r::Logger.new('goliath')