Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't press enter when entering register command. #138

Open
rickicode opened this issue Dec 28, 2021 · 7 comments
Open

can't press enter when entering register command. #138

rickicode opened this issue Dec 28, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@rickicode
Copy link

image

hello,
can't press enter when entering register command.
only appears M^ typing pressing enter.
i use wgcf_2.2.11_linux_mipsle_softfloat

any solution?

@ViRb3
Copy link
Owner

ViRb3 commented Dec 28, 2021

What distro and shell are you using? For a quick workaround, you can do wgcf register --accept-tos to bypass the interactive prompt.

@ViRb3 ViRb3 added the bug Something isn't working label Dec 28, 2021
@rickicode
Copy link
Author

i'm using openwrt, and using putty.

oke thank you, I guess there is no quick way to yes TOS

@ViRb3
Copy link
Owner

ViRb3 commented Dec 28, 2021

By using the above command you are automatically saying yes to TOS. I guess that OpenWRT and/or your PuTTY setup ends up using a shell that is incompatible with the interactive prompt package.

@rickicode
Copy link
Author

okay, thank you!!!!
if i use linux os on the same putty, its works

@Weegley
Copy link

Weegley commented Feb 15, 2022

Got same problem just now on Keenetic router :) Any possibility to have batch mode?
Btw, mc works fine there. Can't remember if i use any interactive prompts somewhere...

@PeakGymnast
Copy link

Same problem here. I ran this program on window 11 to create config file, but no responded a long time. So i tried a another proxy tool ---Clash via TAP tunnel to provide a good network connection, it worked no more waiting time

@PS4-BillGates
Copy link

PS4-BillGates commented Mar 20, 2022

Hello, excuseme for my English.

In my Windows10 Box i made a batch script for automatic generation of QR-Code using this tool and "SimpleCodeGenerator" by NirSoft. (https://www.nirsoft.net/utils/qr_code_generator.html)

I wish to share with us.

(* place this script, "wgcf" and "SimpleCodeGenerator.exe" in the same folder)


@echo OFF

SETLOCAL enabledelayedexpansion

SET toml_File=wgcf-account.toml
SET conf_File=wgcf-profile.conf

CD /D "%~dp0"

IF EXIST %toml_File% (
DEL /F %toml_File%
)

:: Register a new CloudFlare account.
wgcf_2.2.12_windows_amd64 register --accept-tos

IF NOT EXIST %toml_File% (
CLS
ECHO ERROR: Can't find CloudFlare-Warp license file!
ECHO. & PAUSE & EXIT
)

IF EXIST %conf_File% (
DEL /F %conf_File%
)

:: Generate WireGuard config from CloudFlare account.
wgcf_2.2.12_windows_amd64 generate

IF NOT EXIST %conf_File% (
CLS
ECHO ERROR: WireGuard config file for CloudFlare-Warp does not exists!
ECHO. & PAUSE & EXIT
)

:: This ensure that the connection remains open for peers located behind a NAT. (my own case)
ECHO PersistentKeepalive = 25>> %conf_File%

:: Create a Memory-Based List of 'WireGuard-Config-File' content
:: This Memory-Based List need to be enclose betwen quotes, here the initial 'Quote-Mark' is placed.
SET AllTextLines="

FOR /f "tokens=* usebackq" %%L IN (%conf_file%) DO (
:: Append a 'New-Line-Escape-Sequence' at the end of each Tex-Line (required by'SimpleCodeGenerator').
SET AllTextLines=!AllTextLines!%%L\r\n
)

:: Put the final Quote-Mark at the end of the List.
SET AllTextLines=!AllTextLines!"

MOVE /Y %toml_File% %TEMP%
MOVE /Y %conf_File% %TEMP%

:: Generate QR-Code from memory
START "" "SimpleCodeGenerator.exe" /ErrorCorrection 2 /MinVersion 1 /MaxVersion 20 /show %AllTextLines%

EXIT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants