Only allow local requests

pull/3110/head
Junegunn Choi 1 year ago
parent 924ffb5a35
commit ec20dfe312
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -24,7 +24,7 @@ func startHttpServer(port int, channel chan []*action) error {
return nil
}
listener, err := net.Listen("tcp", fmt.Sprintf(":%d", port))
listener, err := net.Listen("tcp", fmt.Sprintf("localhost:%d", port))
if err != nil {
return fmt.Errorf("port not available: %d", port)
}

Loading…
Cancel
Save