Skip to content
Snippets Groups Projects
  1. Oct 24, 2024
    • Louis Maillard's avatar
      packaging: clean post-install script · f39d52f7
      Louis Maillard authored
      Cleaned all the dead code in debian/ubuntu post install script.
      
      Change-Id: Idb23b5974e544d704ee9feb753990bf185575ec5
      f39d52f7
    • Louis Maillard's avatar
      packaging: add ubuntu 24.10 build · ea0ddeb2
      Louis Maillard authored
      Building dhtnet for ubuntu 24.10 require the addition of libzstd for
      compilation to work (linker require it).
      
      Change-Id: I2168a84ee9fde3dc21925f000d5f136ef76fb207
      ea0ddeb2
    • Louis Maillard's avatar
      packaging: add Fedora 40 and 39 support · 9edce5fe
      Louis Maillard authored and Adrien Béraud's avatar Adrien Béraud committed
      Add dhtnet.spec for RPM build and fedora_40,39 dockerfile for env build.
      Fix and changes was required in Cmake instruction in order to build:
      - Dependencies can now be built in static mode even with dynamic library
      - Remove occurence of INSTALL_DIR path in dhtnet.pc and dnc.service
        but only when option TRIM_PREFIX_PATH is turned On.
      
      Fix and replace previously-reverted review 28703
      Replace change id (I2f2161d7c65241a35c4acbcc006ba27bfcc1f176)
      
      Change-Id: I5a80317d83791743ba6ee443fae7f89156e8013b
      9edce5fe
    • Adrien Béraud's avatar
      misc: fix various warnings · 08fcd48a
      Adrien Béraud authored
      Change-Id: Ifef17404e31f7478d310179255092d0e17743b16
      08fcd48a
    • Adrien Béraud's avatar
      ConnectionManager: avoid handling shutdown twice · 792b18e6
      Adrien Béraud authored
      Only process the callback if it was not already done by the tls
      shutdown callback.
      
      Change-Id: Iee9b479100268c4815f40f7b5d51b9db7dbb22cd
      792b18e6
  2. Oct 23, 2024
  3. Oct 22, 2024
  4. Oct 21, 2024
  5. Oct 18, 2024
  6. Oct 17, 2024
  7. Oct 14, 2024
  8. Oct 11, 2024
  9. Oct 10, 2024
  10. Oct 09, 2024
    • Louis Maillard's avatar
      packaging: Add Fedora 40 and 39 support · eab419d3
      Louis Maillard authored
      Add dhtnet.spec for RPM build and fedora-40,39 dockerfile for env build.
      Fix and changes was required in Cmake instruction in order to build:
      - Add `llhttp` and `neddle` library linking when building tools
      - `llhttp` liking is disabled by default for debian, enabled for fedora
      - Remove occurence of INSTALL_DIR path in dhtnet.pc and dnc.service
      
      Change-Id: I2f2161d7c65241a35c4acbcc006ba27bfcc1f176
      eab419d3
    • Louis Maillard's avatar
      config: replace jami.net servers by sfl.io · f6b2962e
      Louis Maillard authored
      We was using jami.net tun server and bootstrap node in docs, config and
      even source code as default. To split concerns, DHTNet now have it's
      own turn.sfl.io and bootstrap.sfl.io services for demonstration and
      public testing purpose. They are still not intended for production use.
      
      Also change default conf to allow anonymous by default.
      This is not a security concern as by default we only allow SSH access,
      which is secure and restricted by key / password.
      
      Change-Id: Ibcd3607dcd7f46ed21c0ac396fde0459edc2c92e
      f6b2962e
    • Louis Maillard's avatar
      jenkins: add build pipeline for .deb artefacts · 503d3644
      Louis Maillard authored
      Add a Jenkinsfile for automation of building artefacts for debian, ubuntu
      and following distros.
      Jenkins read a build.version file to determine version to build.
      
      We don't just run `extras/packaging/build_package.sh -a` because this
      would lead to running unverified shell script from unapproved commit
      outside of docker isolation, directly on jenkins server.
      
      Change-Id: I0482aa489272952755b88efefa0674175ca88cdd
      503d3644
  11. Sep 30, 2024
  12. Sep 26, 2024
  13. Sep 24, 2024
  14. Sep 23, 2024
  15. Sep 17, 2024
    • ovari's avatar
      misc: unify terminology · a15c688e
      ovari authored
      8+3 filename → 8.3 filename
      be ware → beware
      {cannot, can not, can't, could not, couldn't} → unable to
      familly → family
      file name → filename
      informations → information
      plateform → platform
      trial → attempt
      trying to → attempting to
      {web-server, webserver} → Web server
      
      Change-Id: I33b1a0091b5af4f0f055bd4c21b2a05a39adbc50
      GitLab: jami-client-qt#1730
      a15c688e
  16. Sep 16, 2024
  17. Sep 13, 2024
    • Amna Snene's avatar
      upnp: make released mappings available for future use · 7333b1fc
      Amna Snene authored and François-Simon Fauteux-Chapleau's avatar François-Simon Fauteux-Chapleau committed
      When a client (controller) releases a mapping, the expected behaviour is
      that the client deletes it from its local mapping list (the controller
      list) and the context makes it available for future use (by the same
      controller or any other controller). Currently, when the client releases
      a mapping, the context requests a mapping removal from the IGD and
      removes it from its local list (the context list).
      
      GitLab: #39
      Change-Id: Ic7d54551372f2af9752c1469dc3442db2503a0fb
      7333b1fc
  18. Sep 11, 2024
  19. Sep 09, 2024
  20. Sep 05, 2024
    • Andreas Traczyk's avatar
      mapping: define NOMINMAX to prevent breakage for foo::max() · 9e064bf9
      Andreas Traczyk authored
      sys_clock::time_point::max() is now used and without NOMINMAX, max
      is defined as a macro in a common Windows header.
      
      This commit defines NOMINMAX in the CMakeLists.txt and removes some
      commented code in mapping.cpp.
      
      Gitlab: #41
      Change-Id: I98654cbafd362417d61734c4389b11ed68ff8dd8
      9e064bf9
  21. Aug 30, 2024
    • François-Simon Fauteux-Chapleau's avatar
      natpmp: fix out-of-order responses bug · bd9a2886
      François-Simon Fauteux-Chapleau authored
      This patch fixes a few issues with the way libnatpmp was used in DHTNet.
      The two most important ones are the following:
      
      1) Each call to sendnewportmapping is now followed by a call to
         readResponse. This is important because libnatpmp expects the
         response to each request to be read before another request is sent;
         skipping a request can cause the responses to later requests to be
         incorrect.
      
      2) All requests are now sent from the Asio thread. This wasn't the case
         before, and as a result the responses to requests made from different
         threads would sometimes get mixed up (e.g. if thread 1 sends request
         A and thread 2 sends request B, then thread 1 could end up reading
         the response to request B).
      
      The other (minor) issues are:
      
      3) The readResponse function would return the NATPMP_ERR_SOCKETERROR
         error code when the MAX_READ_RETRIES limit was hit instead of
         NATPMP_TRYAGAIN, which made this case look identical to a poll error
         in the logs. The function would also sleep unnecessarily after the
         last iteration when the limit was reached.
      
      4) The sendMappingRequest function tried to make up to MAX_READ_RETRIES
         calls to readResponse when it detected that it had gotten a response
         of the wrong type, but this doesn't work because libnatpmp doesn't
         allow reading multiple responses in a row and will simply return a
         NATPMP_ERR_NOPENDINGREQ error for each call after the first one.
      
      GitLab: #33
      Change-Id: If8f0824eef1de601411c9e70bd33df46230a24f8
      bd9a2886
  22. Aug 29, 2024
  23. Aug 28, 2024
    • Amna Snene's avatar
      upnp: add IGD discovery phase. · 0d21523c
      Amna Snene authored and François-Simon Fauteux-Chapleau's avatar François-Simon Fauteux-Chapleau committed
      When the protocols start searching for IGD, the IGD discovery phase begins.
      During this phase, all requested mappings will be marked as pending.
      If an IGD is found, the pending mappings will be requested from the router.
      If the phase ends due to a timeout, the pending mappings will be marked as failed
      
      GitLab: #36
      Change-Id: Icb19b05e40968d619cb032a949a8fe8acfef311b
      0d21523c
  24. Aug 26, 2024
  25. Aug 16, 2024
    • Amna Snene's avatar
      pupnp: Log a warning if UPnP is already initialized · 7a33c7c3
      Amna Snene authored
      Currently, any flag other than UPNP_E_SUCCESS terminates UPnP during initialization. However, the UPNP_E_INIT flag (indicating UPnP is already initialized) should not cause termination. NAT-PMP has no equivalent flag.
      
      Change-Id: Ia40508a4c07a141dbd5e2effe5f11dff05607d7c
      7a33c7c3
Loading