Merge pull request #75246 from aojea/e2e_ipv6_prestop

Add IPv6 support to the nettest image
k3s-v1.15.3
Kubernetes Prow Robot 2019-05-03 18:25:38 -07:00 committed by GitHub
commit fd5560e90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
FROM scratch FROM gcr.io/distroless/static:latest
COPY nettest / COPY nettest /
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["/nettest"] ENTRYPOINT ["/nettest"]

View File

@ -1 +1 @@
1.0 1.1

View File

@ -210,7 +210,7 @@ func main() {
http.HandleFunc("/write", state.serveWrite) http.HandleFunc("/write", state.serveWrite)
http.HandleFunc("/status", state.serveStatus) http.HandleFunc("/status", state.serveStatus)
go log.Fatal(http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", *port), nil)) go log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", *port), nil))
select {} select {}
} }