Skip to content
Snippets Groups Projects

obfs4: stop obfs4 client and proxy in a go routine

Merged jkito requested to merge jkito/bitmask-vpn:obfsvpn-close into main
  1. Aug 03, 2024
    • jkito's avatar
      gui: reduce size of splash screen image · 3dab6264
      jkito authored
      3dab6264
    • 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
      gui: disable obfs4 and kcp checkbox in preferences for riseup · d8350ee8
      jkito authored
      riseup currently is not having any deployed obfs4 or kcp bridges
      but the eip-service.json contains transports[].type as obfs4 for
      many of the gateways, therfore the bridge options are explicitly
      disabled if the provider name is 'riseup'
      d8350ee8
    • jkito's avatar
      conf: set SkipLaunch to true during context initialization · 29f6493f
      jkito authored
      this prevents starting openvpn connection automatically after
      app start, since currently there's no preference setting  for
      it to allow the user to control the behavior
      
      this also sets DisableAutostart to true since it is currently
      not working on any of the platforms
      29f6493f
    • jkito's avatar
      gui: use an Image item to set the on/off icon · 3fedfdd3
      jkito authored
      this uses the contentItem property of RoundButton to
      use an Image item and set the power button as on/off
      changing from Icon to Image allows to use the mipmap
      property, which should improve the image quality
      3fedfdd3
    • 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
Loading