izderadicka / ptunnel-rust

tunnels connections through HTTPS enabled proxy (supporting CONNECT method)
MIT License
41 stars 7 forks source link

Failed to run on macos #6

Closed Moicen closed 1 year ago

Moicen commented 1 year ago

raise ptunnel-rust issue

I tried to use this tool but failed with error:

➤ sudo ./ptunnel -p localhost:8829 9993:gmail-imap.l.google.com:993 5587:gmail-smtp-msa.l.google.com.:587                                                                                                                                             15:37:51
[2023-09-14T07:37:53Z ERROR ptunnel] Error when creating tunnel: Invalid argument (os error 22)
[2023-09-14T07:37:53Z ERROR ptunnel] Error when creating tunnel: Invalid argument (os error 22)

I’m using MacOS 13.5.2 (22G91) and rustc 1.72.0 (5680fa18f 2023-08-23) Can this tool get updated?

izderadicka commented 1 year ago

Quick fix provided in 66503ca6c825d5af59f639f9aa583354bbe26ceb in future might look at upgrade to latest tokio, but it'll require bit of rewrite.

izderadicka commented 1 year ago

Upgraded to latest tokio

Moicen commented 1 year ago

Thanks!