Support both internal and external rttys

This commit is contained in:
stephb9959
2021-11-26 23:10:35 -08:00
parent 1ac3fb2f44
commit 5a8ac97d9a
2 changed files with 5 additions and 2 deletions

View File

@@ -730,7 +730,7 @@ void RESTAPI_device_commandHandler::MakeRequest() {
};
if(RTTYS_server()->UseInternal()) {
Rtty.Token = MicroService::instance().CreateHash(UserInfo_.webtoken.refresh_token_ + std::to_string(std::time(nullptr))).substr(0,30);
Rtty.Token = MicroService::instance().CreateHash(UserInfo_.webtoken.refresh_token_ + std::to_string(std::time(nullptr))).substr(0,32);
RTTYS_server()->CreateEndPoint(Rtty.ConnectionId,Rtty.Token);
}