ntop / n2n

Peer-to-peer VPN
GNU General Public License v3.0
6.18k stars 930 forks source link

added n2n-route tool #982

Closed Logan007 closed 2 years ago

Logan007 commented 2 years ago

This PR adds a route tool tools/n2n-route which queries the edge's management port and uses the information gathered to take care of system routes. It replaces edge's -n CLI parameter.

It only works on Linux. This is no real loss because edge's -n has not been fully working on Windows before – and not at all on other OS.

It is part of ongoing efforts to outsource non-core functionalities from, well, the n2n core.

codecov-commenter commented 2 years ago

Codecov Report

Merging #982 (3f7baf3) into dev (a274818) will increase coverage by 0.18%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##              dev     #982      +/-   ##
==========================================
+ Coverage   21.03%   21.22%   +0.18%     
==========================================
  Files          43       45       +2     
  Lines        8327     8255      -72     
==========================================
  Hits         1752     1752              
+ Misses       6575     6503      -72     
Impacted Files Coverage Δ
src/edge.c 0.00% <0.00%> (ø)
src/edge_management.c 0.00% <0.00%> (ø)
src/edge_utils.c 1.80% <0.00%> (+0.20%) :arrow_up:
src/json.c 0.00% <0.00%> (ø)
src/n2n.c 0.96% <0.00%> (-0.01%) :arrow_down:
src/sn_management.c 0.00% <0.00%> (ø)
src/sn_utils.c 0.00% <0.00%> (ø)
src/supernode.c 0.00% <0.00%> (ø)
src/tuntap_linux.c 0.00% <0.00%> (ø)
tools/n2n-route.c 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a274818...3f7baf3. Read the comment docs.