Skip to content
Snippets Groups Projects
  1. Oct 13, 2024
    • Pea Nut's avatar
      Fix log message that logs whitelisted gateway ip in firewall · a2dfd37b
      Pea Nut authored and jkito's avatar jkito committed
      Having a space in Str() is supoptimal:
      > DBG Allowd gateway IP gateway ip: =51.158.144.32
      a2dfd37b
    • jkito's avatar
      config: enable UDP for openvpn by default · 3b24fc3a
      jkito authored and jkito's avatar jkito committed
      this adds a new helper setDefaults() in the config
      package and calls it when the config file  doesn't
      exist, this provides a way for us to have  default
      values for the config options
      
      setDefaults currently only sets the UDP config  to
      'true' since it is expected that UDP is enabled by
      default
      3b24fc3a
  2. 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
  3. Jul 29, 2024
  4. 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
  5. Jul 22, 2024
  6. Jul 21, 2024
  7. Jul 17, 2024
  8. Jul 13, 2024
  9. Jul 10, 2024
  10. Jul 05, 2024
  11. Jul 04, 2024
  12. Jun 27, 2024
  13. Jun 21, 2024
  14. Jun 20, 2024
    • jkito's avatar
      test: skip failing TestLatency in CI · c70427a1
      jkito authored
      the test is failing with the following error:
      ```
      --- FAIL: TestLatency (0.00s)
          integration_test.go:65:
              	Error Trace:	/builds/jkito/bitmask-vpn/pkg/vpn/menshen/integration_test.go:65
              	Error:      	Received unexpected error:
              	            	socket: permission denied
              	Test:       	TestLatency
              	Messages:   	Could not calc latency
      FAIL
      FAIL	0xacab.org/leap/bitmask-vpn/pkg/vpn/menshen	0.029s
      ```
      
      it is beacause of missing permissons, the pro-bing library attempts
      to send an "unprivileged" ping via UDP. On Linux, this must be enabled
      with a sysctl command
      c70427a1
    • jkito's avatar
      chore: simplify setting of version for the app · 50108c0c
      jkito authored
      this removes the go generate way of generating the
      pkg/config/version.go file and uses build time  ld
      flags to set the version when building from git or
      uses .gitattributes to set it during git archive
      50108c0c
Loading