mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-09-23 18:59:03 +00:00
Only allow local requests
This commit is contained in:
parent
924ffb5a35
commit
ec20dfe312
@ -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…
Reference in New Issue
Block a user