skycoin / skywire

Skywire Node implementation
73 stars 45 forks source link

fix various issues #1781

Closed mrpalide closed 3 months ago

mrpalide commented 3 months ago

Did you run make format && make check? Yes

Fixes #1779 #1769 #1753 #1694

Changes:

How to test this PR: You can run visor and trying to start/stop proxy and vpn by these commands:

0pcom commented 3 months ago

Note there are windows machines of arm64 architecture

0pcom commented 3 months ago
$ skywire cli proxy start -k 03419b3c3f9db0404b44afc532a91eb2c108499f7575d0e7937dd8d076d385b607
Starting..............................
Stopped!

seems says it stopped, about the time it was actually started

[2024-03-21T08:28:01.505341862-05:00] DEBUG (STDOUT) [proc:skysocks-client:82e01b3b49514a46857f542a157ad816]: Serving proxy client :1080
[2024-03-21T08:28:01.51240123-05:00] DEBUG (STDOUT) [proc:skysocks-client:82e01b3b49514a46857f542a157ad816]: Serving http proxy :1081

We shouldn't auto-start the http proxy. Especially in instances where I need to test a lot of proxy servers, the http proxy running just takes up another port needlessly

[2024-03-21T08:31:44.569585495-05:00] INFO [visor]: Changing skysocks-client Settings to map["--addr":":1080" "--http":":1081" "--srv":"03894b70efab29edcb5669cda5c34e47a6efce9130849faeaac4c3776e69d7b152" "app":"skysocks-client"]
[2024-03-21T08:31:44.569626939-05:00] INFO [visor:config]: Flushing config to file. config_version="unknown" filepath="/opt/skywire/skywire.json"
[2024-03-21T08:31:44.569965083-05:00] INFO [visor:config]: Flushing config to file. config_version="unknown" filepath="/opt/skywire/skywire.json"
[2024-03-21T08:31:44.570108433-05:00] INFO [visor:config]: Flushing config to file. config_version="unknown" filepath="/opt/skywire/skywire.json"
[2024-03-21T08:31:44.570244989-05:00] INFO [visor:config]: Flushing config to file. config_version="unknown" filepath="/opt/skywire/skywire.json"
[2024-03-21T08:31:44.570396409-05:00] INFO [visor:config]: Flushing config to file. config_version="unknown" filepath="/opt/skywire/skywire.json"

the config seems to be flushed excessively here

mrpalide commented 3 months ago

All comments from Moses fixed in last two commits.

0pcom commented 3 months ago

please make the timeout 0 by default.