mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-12 00:16:28 +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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
listener, err := net.Listen("tcp", fmt.Sprintf(":%d", port))
|
listener, err := net.Listen("tcp", fmt.Sprintf("localhost:%d", port))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("port not available: %d", port)
|
return fmt.Errorf("port not available: %d", port)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user