mirror of
https://github.com/cbeuw/Cloak.git
synced 2026-04-26 04:55:58 +03:00
[GH-ISSUE #178] Configuration file error: failed to read #146
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cloak#146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SavvyEngineer on GitHub (Nov 23, 2021).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/178
Hi thanks for this amazing project i cloned the repo and build but when i try to use the ck-server -c config file i get
I even tried the exact example config file but still the same
and im using Centos
@anuradhapriyankara commented on GitHub (Feb 17, 2022):
@SavvyEngineer I'm facing the same issue on Ubuntu 20.04 Server. Have you found a solution for this?
@anuradhapriyankara commented on GitHub (Feb 18, 2022):
I have tested V2.0.0 and it worked as expected on Ubuntu 20.04. However none of the newer versions did. I'll be using V2.0.0 until devs fix the issue.
@cbeuw commented on GitHub (Feb 18, 2022):
The sample config is not meant to work (I suspected that people are using default UIDs and keys so I pulled it). If you look at its content you'll see placeholders asking you to provide your own UID and keys.
github.com/cbeuw/Cloak@847b7e24bf/example_config/ckserver.json (L20-L25)You need to generate public key, private key and a UID following the steps in README https://github.com/cbeuw/Cloak#server-1:
You don't need to have the AdminUID field if you don't intend to add more than one users, just delete it from the JSON file, and put your UID in BypassUID (and in client config ofc)
@anuradhapriyankara commented on GitHub (Feb 20, 2022):
@cbeuw Actually I have generated my own private key, public key and Admin UID and replaced them in json configuration file yet the error still occurs. It seems to be occurring while unmarshalling the json configuration file into golang block. Here is a similar case on stackoverflow
Unfortunately I'm not a go lang developer so couldn't fix the issue myself. This might be something only happens on Linux. However, as I have already mentioned V2.0.0 doesn't have this issue and it works as expected on Ubuntu 20.04 server.
@cbeuw commented on GitHub (Feb 20, 2022):
@anuradhapriyankara The Stackoverflow question has the data in hex format (like
000daf177434acd55a3284787b793a3453c3d70eacdb9a84f5faed43adb2ff58), instead of Base64 format (likeT4mu9oB7D9GOzXwUoFD/UNps3JfJW2dv7RlhpiqmImc=). Which format is yours in? Cloak currently only accepts UIDs and keys in Base64. This is also whatck-server -keyandck-server -uiddisplays@anuradhapriyankara commented on GitHub (Feb 20, 2022):
@cbeuw Just checked again and realized I have left BypassUID as "-" instead of just "". My bad. Latest version works well. I have used an older configuration template with V2.0.0 so that's why it worked. Sorry for the confusion.
Great project and keep up the good work! This has been really useful for me to bypass speed limits imposed upon certain applications by my ISP.
@cbeuw commented on GitHub (Feb 20, 2022):
@anuradhapriyankara Thank you, glad to hear!