safety: SGX listen address now hardcoded localhost

Denver Gingerich created

Since it is easier to manage an HTTP connection between SGX and
translator, and this is likely how it will be used going forward,
remove the default of listening on all interfaces and instead just
listen on the loopback interface.  Managing HTTPS is beyond the scope
of the work here, and that would be required in order to safely listen
on other interfaces (and if you know it's safe for your situation, you
can of course just change the hardcoded value back to '0.0.0.0').

Change summary

sgx-bwmsgsv2.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

sgx-bwmsgsv2.rb 🔗

@@ -981,7 +981,7 @@ at_exit do
 			SGXbwmsgsv2.write(msg)
 		end
 
-		server = Goliath::Server.new('0.0.0.0', ARGV[5].to_i)
+		server = Goliath::Server.new('127.0.0.1', 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')