mirror of
https://github.com/junegunn/fzf.git
synced 2025-07-31 04:02:01 -07:00
Only allow local requests
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user