[GH-ISSUE #46] can multiple users use same UID? #38

Open
opened 2026-02-26 12:33:47 +03:00 by kerem · 6 comments
Owner

Originally created by @alexkatanda on GitHub (Aug 6, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/46

I tested openvpn+ck
In one mobile it is normally worked, however in two mobile it can not work simultaneously.

Originally created by @alexkatanda on GitHub (Aug 6, 2019). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/46 I tested openvpn+ck In one mobile it is normally worked, however in two mobile it can not work simultaneously.
Author
Owner

@cbeuw commented on GitHub (Aug 6, 2019):

A UID is supposed to be used across multiple devices by the same user, although each device needs its own ck-client instance. Did you connect both mobiles to the same instance or are there two separate clients running?

<!-- gh-comment-id:518798216 --> @cbeuw commented on GitHub (Aug 6, 2019): A UID is supposed to be used across multiple devices by the same user, although each device needs its own ck-client instance. Did you connect both mobiles to the same instance or are there two separate clients running?
Author
Owner

@alexkatanda commented on GitHub (Aug 6, 2019):

Two client is using the same configuration and UID.

<!-- gh-comment-id:518799876 --> @alexkatanda commented on GitHub (Aug 6, 2019): Two client is using the same configuration and UID.
Author
Owner

@alexkatanda commented on GitHub (Aug 6, 2019):

Of course, in both mobiles are running two separate client.
These are using the same configuration(server ip, domain, uid, public
key...)

<!-- gh-comment-id:518801450 --> @alexkatanda commented on GitHub (Aug 6, 2019): Of course, in both mobiles are running two separate client. These are using the same configuration(server ip, domain, uid, public key...)
Author
Owner

@alexkatanda commented on GitHub (Aug 6, 2019):

Can i get current active UID list in ck-server?

<!-- gh-comment-id:518808069 --> @alexkatanda commented on GitHub (Aug 6, 2019): Can i get current active UID list in ck-server?
Author
Owner

@cbeuw commented on GitHub (Aug 6, 2019):

So somehow 9 months ago when I first started this project I imported math/rand instead of crypto/rand in ck-client.go. That maybe intentional back then but later whenever i called rand.Read in ck-client.go it's actually the deterministic pseudo random generator being called. This caused the sessionId generated in ck-client.go being constant on startup. I've fixed it in github.com/cbeuw/Cloak@d9d8be12dc and it should solve the issue.

As for a list of active users, it's on the TODO list, though there's no time frame as to when I'll implement it

<!-- gh-comment-id:518824540 --> @cbeuw commented on GitHub (Aug 6, 2019): So somehow 9 months ago when I first started this project I imported math/rand instead of crypto/rand in ck-client.go. That maybe intentional back then but later whenever i called rand.Read in ck-client.go it's actually the deterministic pseudo random generator being called. This caused the sessionId generated in ck-client.go being constant on startup. I've fixed it in https://github.com/cbeuw/Cloak/commit/d9d8be12dc92c436503fb570229030789464ad2b and it should solve the issue. As for a list of active users, it's on the TODO list, though there's no time frame as to when I'll implement it
Author
Owner

@malikshi commented on GitHub (Aug 16, 2019):

can you share config openvpn server and cloak server? i dont really understand it,

<!-- gh-comment-id:521892088 --> @malikshi commented on GitHub (Aug 16, 2019): can you share config openvpn server and cloak server? i dont really understand it,
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#38
No description provided.