Cloak icon indicating copy to clipboard operation
Cloak copied to clipboard

can multiple users use same UID?

Open alexkatanda opened this issue 6 years ago • 6 comments

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

alexkatanda avatar Aug 06 '19 18:08 alexkatanda

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?

cbeuw avatar Aug 06 '19 18:08 cbeuw

Two client is using the same configuration and UID.

alexkatanda avatar Aug 06 '19 18:08 alexkatanda

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

alexkatanda avatar Aug 06 '19 19:08 alexkatanda

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

alexkatanda avatar Aug 06 '19 19:08 alexkatanda

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

cbeuw avatar Aug 06 '19 20:08 cbeuw

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

malikshi avatar Aug 16 '19 05:08 malikshi