-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: store modulus as a global property
This allows us to separate launching the proxy service, and booting corresponding clients. The modulus between all clients on a specific platform is guaranteed to be identical anyhow.
- Loading branch information
Showing
5 changed files
with
33 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
package net.rsprox.proxy.config | ||
|
||
import java.math.BigInteger | ||
import java.nio.file.Path | ||
import kotlin.io.path.Path | ||
|
||
internal val CONFIGURATION_PATH: Path = Path(System.getProperty("user.home"), ".rsprox") | ||
internal val BINARY_PATH: Path = CONFIGURATION_PATH.resolve("binary") | ||
internal val CLIENTS_DIRECTORY: Path = CONFIGURATION_PATH.resolve("clients") | ||
internal var patchedRsaModulus: BigInteger? = null |