Skip to content
Snippets Groups Projects
  1. Jan 31, 2025
  2. Dec 04, 2024
  3. Dec 03, 2024
  4. Nov 20, 2024
    • jkito's avatar
      chore: replace ioutil with io module · 685cb3c9
      jkito authored and jkito's avatar jkito committed
      685cb3c9
    • Pea Nut's avatar
      Strip port of menshen host before resolving with logDnsLookup · dd29081b
      Pea Nut authored and jkito's avatar jkito committed
      In case of an error, we try to logDnsLookup(url.Host). url is based on the
      provider api url. This can be localhost:8443, so we need to strip the
      port :8443 before.
      
      There is also a small change in pkg/vpn/status.go. When using an
      introducer, fetching information from menshen can take some time. Then
      it can be normal that the call to `GetBestLocation()` fails. This is not
      a big deal, as it is called later/periodically. But when we use .Err(),
      the output is printed bold to stdout and it looks like there is a big
      issue.
      dd29081b
  5. Oct 19, 2024
    • jkito's avatar
      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
  6. Oct 14, 2024
  7. Oct 13, 2024
  8. Aug 03, 2024
    • jkito's avatar
      Set transport to openvpn when provider is riseup · b829610c
      jkito authored
      since obfs4 and kcp is disabled in the UI when provider
      is riseup, transport needs to be set to openvpn to work
      around config file with Obfs4 and KCP set to true  from
      a previous version of the app
      b829610c
    • jkito's avatar
      obfs4: stop obfs4 client and proxy in a go routine · ccf0bfa4
      jkito authored
      the Stop is blocking and cannot be called concurrently
      with Start, when for some reason obfs4 client fails to
      connect and has not yet returned from Start, a call to
      Stop will block until Start has returned, which  makes
      UI unresponsive for some time
      
      calling it in a separate Go routine works around  this
      issue as we can proceed to stop the openvpn process
      ccf0bfa4
    • jkito's avatar
      obfs4: filter out kcp bridges when transport is obfs4 · 3c9a86e1
      jkito authored and jkito's avatar jkito committed
      in case of KCP the transport.Type is still obfs4, but it has
      a different port than obfs4, without this commit KCP enabled
      bridges were also considered as valid obfs4 bridges
      
      in theory the same bridge can be running in both obfs4 and KCP
      mode and listening on different ports, but the eip-service.json
      schema separates this into different transport objects
      
      this fixes a bug where after selecting obfs4 transport it was
      trying connect to a KCP enabled bridge with plain obfs4 mode
      3c9a86e1
    • jkito's avatar
      gui: send error during stopVPN call to gui · 2844839b
      jkito authored and jkito's avatar jkito committed
      during startVPN any error occuring are set but
      this was not done for stopVPN
      2844839b
  9. Jul 29, 2024
  10. Jul 26, 2024
    • jkito's avatar
      motd: fix fetching of motd for riseup provider · 8bc5fc06
      jkito authored
      in b1796790 the config.Provider was changed from the provider
      URL to the provider name but the check fetching motd expected
      an URL this updates the case statement to match the  provider
      name instead of the provider URL
      8bc5fc06
  11. Jul 22, 2024
Loading