globalTunnel._makeRequest checks if options.host is set, but Hyperledger Fabric is using options.hostname instead which causes the proxy to be bypassed.
options
host <string> A domain name or IP address of the server to issue the request to. Default: 'localhost'.
hostname <string> Alias for host. To support url.parse(), hostname is preferred over host.
That means both is legal to use.
I already made a fix together with @bigbelette, see pull request #15.
globalTunnel._makeRequest checks if options.host is set, but Hyperledger Fabric is using options.hostname instead which causes the proxy to be bypassed.
The documentation of http.request(options[, callback]) says the following about host and hostname in options:
That means both is legal to use. I already made a fix together with @bigbelette, see pull request #15.