Skip to content

Commit

Permalink
fix changing ip for the same client
Browse files Browse the repository at this point in the history
  • Loading branch information
Danilo Mitera committed Dec 30, 2019
1 parent d095a82 commit b221e45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Cedar/NativeStack.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ void NsGenMacAddress(void *dest, char *mac_address_seed, char *device_name)
Zero(tmp, sizeof(tmp));

StrCat(tmp, sizeof(tmp), mac_address_seed);
StrCat(tmp, sizeof(tmp), "@");
StrCat(tmp, sizeof(tmp), "@55");
StrCat(tmp, sizeof(tmp), device_name);

Trim(tmp);
Expand Down
2 changes: 1 addition & 1 deletion src/Cedar/Session.c
Original file line number Diff line number Diff line change
Expand Up @@ -2337,7 +2337,7 @@ SESSION *NewServerSessionEx(CEDAR *cedar, CONNECTION *c, HUB *h, char *username,

GetMachineName(machine, sizeof(machine));

Format(tmp, sizeof(tmp), "%s@%s@%u", machine, h->Name, s->UniqueId);
Format(tmp, sizeof(tmp), "%s@%s@%s", username, machine, h->Name);

StrUpper(tmp);
Trim(tmp);
Expand Down

0 comments on commit b221e45

Please sign in to comment.