krlvm / PowerTunnel

Powerful and extensible proxy server with anti-censorship functionality
GNU General Public License v3.0
1.25k stars 81 forks source link

Console launch broken #89

Closed ackr-8 closed 2 years ago

ackr-8 commented 2 years ago

When trying to launch Powertunnel v2.0 or above the program crashes with following output/error :

Windows 10 with AdoptOpenJDK 11,16,17 : PowerTunnel version 2.2 Powerful and extensible proxy server (c) krlvm, 2019-2022

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.

Linux with JRE 11,16 : PowerTunnel version 2.2 Powerful and extensible proxy server (c) krlvm, 2019-2022

usage: PowerTunnel --auth-password set proxy authorization password --auth-username set proxy authorization username --cfg set preference value --disable-updater disable Update Notifier --enable-logging enable logging to file --help display help --ip set proxy server IP address --port set proxy server port --start start proxy server after load --upstream-auth-username set upstream proxy password --upstream-proxy-host set upstream proxy host --upstream-proxy-port set upstream proxy port --version print version details

ackr-8 commented 2 years ago

the -console flag is totally missing in the usage.

krlvm commented 2 years ago

Thanks for noticing

ackr-8 commented 2 years ago

I noticed when my docker build was failing and hence wasn't able to push the update to public.

krlvm commented 2 years ago

Fixed in version 2.2.1

ackr-8 commented 2 years ago

The new update now works but just had to remove -console when running under Linux, not sure why, thanks for the superfast fix.

krlvm commented 2 years ago

The new update now works but just had to remove -console when running under Linux, not sure why, thanks for the superfast fix.

IIRC the correct argument is --console. If the system does not have a display (e.g. Ubuntu Server / Windows Server Core), PowerTunnel automatically starts in console mode.

ackr-8 commented 2 years ago

Oh, but in the wiki its mentioned -console and 1.14 and below worked with that, anyways it auto switches to console so not a big deal.

krlvm commented 2 years ago

I got rid the old spaghetti codebase since v2.0, including the console parser.

I forgot to document the anti-censorship module arguments, so feel free to ask if you need them.

ackr-8 commented 2 years ago

oh ok. Will ask if I have any issues.