Skip to content

Commit

Permalink
Do not log compromised warning if no overrides for base or store url …
Browse files Browse the repository at this point in the history
…are configured
  • Loading branch information
philippj committed May 17, 2021
1 parent 18452a1 commit e19ba04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/3_Game/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ class GameLabsCore {

// TODO: Move this somewhere else in the future
this.logger.Debug(string.Format("baseUrl=%1", this.configuration.GetBaseURL()));
if(this.configuration.GetBaseURL() != "https://api.cftools.cloud/gamelabs/dz") {
if(this.configuration.GetBaseURL() != "https://api.cftools.cloud/gamelabs/dz" && this.configuration.GetBaseURL() != "") {
this.logger.Warn(string.Format("API Base URL has been modified, your data may get compromised! (%1)", this.configuration.GetBaseURL()));
}

this.logger.Debug(string.Format("storeUrl=%1", this.configuration.GetStoreURL()));
if(this.configuration.GetStoreURL() != "https://api.cftools.cloud/gamelabs/dz") {
if(this.configuration.GetStoreURL() != "https://api.cftools.cloud/gamelabs/dz" && this.configuration.GetStoreURL() != "") {
this.logger.Warn(string.Format("API Store URL has been modified, your data may get compromised! (%1)", this.configuration.GetStoreURL()));
}
}
Expand Down

0 comments on commit e19ba04

Please sign in to comment.