Skip to content
Snippets Groups Projects
  • jkito's avatar
    d98efd23
    helper: use unix socket for local api · d98efd23
    jkito authored
    bitmask-vpn installs a daemon called bitmask-helper
    which exposes a http api to handle firewall up/down
    and openvpn connect/disconnect (only in macos)
    
    this daemon was listening on localhost, since it is
    meant to be only accessible to local processes we'v
    changed it to listen on a unix domain socket
    
    using unix socket allows to apply file  permissions
    and restrict access to the api to only the intended
    user
    d98efd23
    History
    helper: use unix socket for local api
    jkito authored
    bitmask-vpn installs a daemon called bitmask-helper
    which exposes a http api to handle firewall up/down
    and openvpn connect/disconnect (only in macos)
    
    this daemon was listening on localhost, since it is
    meant to be only accessible to local processes we'v
    changed it to listen on a unix domain socket
    
    using unix socket allows to apply file  permissions
    and restrict access to the api to only the intended
    user
This project manages its dependencies using Go Modules. Learn more