Skip to content

Commit 9fdac4e

Browse files
authored
Merge branch 'grepplabs:master' into CVE-2020-29652
2 parents bfa3624 + d4bea4c commit 9fdac4e

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ notifications:
2424
script:
2525
- go build .
2626
- go test ./...
27-
- export TAG=`if [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then echo "latest"; else echo "${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}"; fi`
27+
- export TAG=`if [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then echo "latest"; else echo "${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}" | sed 's/\//_/g'; fi`
2828
- echo "docker tags $TAG and ${TAG}-all"
2929
- docker build --build-arg MAKE_TARGET="test build" -t $REPO:$TAG -f Dockerfile .
3030
- docker build --build-arg MAKE_TARGET="all" -t $REPO:${TAG}-all -f Dockerfile .

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## kafka-proxy
2-
**Work in progress**
32

4-
[![Build Status](https://travis-ci.com/grepplabs/kafka-proxy.svg?branch=master)](https://travis-ci.com/grepplabs/kafka-proxy)
3+
[![Build Status](https://app.travis-ci.com/grepplabs/kafka-proxy.svg?branch=master)](https://app.travis-ci.com/grepplabs/kafka-proxy)
54
[![Docker Hub](https://img.shields.io/badge/docker-latest-blue.svg)](https://hub.docker.com/r/grepplabs/kafka-proxy)
65
[![Docker Pulls](https://img.shields.io/docker/pulls/grepplabs/kafka-proxy)](https://hub.docker.com/r/grepplabs/kafka-proxy)
76

@@ -137,7 +136,7 @@ You can launch a kafka-proxy container with auth-ldap plugin for trying it out w
137136
--bootstrap-server-mapping stringArray Mapping of Kafka bootstrap server address to local address (host:port,host:port(,advhost:advport))
138137
--debug-enable Enable Debug endpoint
139138
--debug-listen-address string Debug listen address (default "0.0.0.0:6060")
140-
--default-listener-ip string Default listener IP (default "127.0.0.1")
139+
--default-listener-ip string Default listener IP (default "0.0.0.0")
141140
--dial-address-mapping stringArray Mapping of target broker address to new one (host:port,host:port). The mapping is performed during connection establishment
142141
--dynamic-advertised-listener string Advertised address for dynamic listeners. If empty, default-listener-ip is used
143142
--dynamic-listeners-disable Disable dynamic listeners.

cmd/kafka-proxy/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func init() {
8484

8585
func initFlags() {
8686
// proxy
87-
Server.Flags().StringVar(&c.Proxy.DefaultListenerIP, "default-listener-ip", "127.0.0.1", "Default listener IP")
87+
Server.Flags().StringVar(&c.Proxy.DefaultListenerIP, "default-listener-ip", "0.0.0.0", "Default listener IP")
8888
Server.Flags().StringVar(&c.Proxy.DynamicAdvertisedListener, "dynamic-advertised-listener", "", "Advertised address for dynamic listeners. If empty, default-listener-ip is used")
8989
Server.Flags().StringArrayVar(&bootstrapServersMapping, "bootstrap-server-mapping", []string{}, "Mapping of Kafka bootstrap server address to local address (host:port,host:port(,advhost:advport))")
9090
Server.Flags().StringArrayVar(&externalServersMapping, "external-server-mapping", []string{}, "Mapping of Kafka server address to external address (host:port,host:port). A listener for the external address is not started")

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func NewConfig() *Config {
258258
c.Http.MetricsPath = "/metrics"
259259
c.Http.HealthPath = "/health"
260260

261-
c.Proxy.DefaultListenerIP = "127.0.0.1"
261+
c.Proxy.DefaultListenerIP = "0.0.0.0"
262262
c.Proxy.DisableDynamicListeners = false
263263
c.Proxy.RequestBufferSize = 4096
264264
c.Proxy.ResponseBufferSize = 4096

0 commit comments

Comments
 (0)