Skip to content

Commit 48d1148

Browse files
andrew-colemanpull[bot]
authored andcommitted
Fix firewall warnings for integration tests on Mac
When running integration tests locally on MacOS, each test causes a number of popup boxes containing the text ‘Do you want the application “peer” to accept incoming network connections?”. Although this can be ignored, each popup takes the (cursor) focus away from the current window, and so is annoying when trying to do anything else. This is caused because each test is launching one or more peer instances which get compiled on demand and appears to the firewall as a new executable. The fix for this is to ensure that all listen addresses are explicitly set as localhost. In this case, the chaincodeListenAddress host can be set to 127.0.0.1 rather than 0.0.0.0 Signed-off-by: andrew-coleman <andrew_coleman@uk.ibm.com>
1 parent 3a9f3a4 commit 48d1148

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

integration/nwo/template/core_template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ peer:
1616
address: 127.0.0.1:{{ .PeerPort Peer "Listen" }}
1717
addressAutoDetect: true
1818
listenAddress: 127.0.0.1:{{ .PeerPort Peer "Listen" }}
19-
chaincodeListenAddress: 0.0.0.0:{{ .PeerPort Peer "Chaincode" }}
19+
chaincodeListenAddress: 127.0.0.1:{{ .PeerPort Peer "Chaincode" }}
2020
keepalive:
2121
minInterval: 60s
2222
client:

0 commit comments

Comments
 (0)