mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-05 06:32:09 -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
|
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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user