Skip to content

Fix to chce_wireguard.sh wireguard's port being set to 200#231

Open
KarolAdameczek wants to merge 2 commits intounkn0w:mainfrom
KarolAdameczek:KarolAdameczek/fix-chce_wireguard.sh-port
Open

Fix to chce_wireguard.sh wireguard's port being set to 200#231
KarolAdameczek wants to merge 2 commits intounkn0w:mainfrom
KarolAdameczek:KarolAdameczek/fix-chce_wireguard.sh-port

Conversation

@KarolAdameczek
Copy link
Copy Markdown

@KarolAdameczek KarolAdameczek commented Mar 5, 2026

"https://mikr.us/generator.php" expects server name in old format (e.g. j123) instead of current format (e.g. julia123). When name in new format (e.g. julia123) is provided, then returned config has port set to 200 (instead of correct 20123 for this sample host). Adding this sed to extract first letter and tailing number from hostname and combining them fixes this issue.

One question that came to my mind is if generator endpoint should be used at all? Maybe it should be abandoned in favour of creating config file directly in the script.

If there is a better way to implement this, please let me know. I'm no shell master and that's my first github contribution. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant