mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
* Initial commit of network improvements Seperated server properties into their own file, this will eventually help facilitate a headless server. Fixed the localhost ip mapping to give the correct IP Address instead of failing and defaulting to "localhost" Fixed UPnP as well as added some additional options and choices regarding UPnP Added localization strings to all language files. (Translators will need to translate these, but the current English string is there for easy reference so they dont have to search the en-US file) * Initial commit of network improvements Seperated server properties into their own file, this will eventually help facilitate a headless server. Fixed the localhost ip mapping to give the correct IP Address instead of failing and defaulting to "localhost" Fixed UPnP as well as added some additional options and choices regarding UPnP Added localization strings to all language files. (Translators will need to translate these, but the current English string is there for easy reference so they dont have to search the en-US file) * Fixed properties file reference * Refactored server address parsing logic to use the Java URI class for improved readability and robustness. Extracted reusable code into separate functions to enhance modularity and maintainability. General code cleanup to improve structure and readability. * Fixed a potential issue if a protocol was already specified in the connection url. * Removed logger implementation as changing loggers is out of scope for this PR Reverted to JUPnP as its implementation is fixed in #7367 Made some of the new localization strings generic as they can be used elsewhere Added a server.preferences.example file removed the server port from the old location (forge.progile.properties.example) Added a server port back into ForgeConstants as it doesnt make sense for the prefered hosting port of the user to override the default Forge connection port. * resolve conflicts between this branch and master * Implemented a parent class for all preference Enums so they can be passed into a function regardless of type using IPref, necessary since I separated server settings into its own FNetPref file Added server preferences section to the preferences Desktop GUI Added a port preference setting and a UPnP preference setting to the aforementioned server preferences section Added a localizedComboBox and localizedComboBoxListener so that localized strings can be used in combobox dropdowns in the server preferences section. TODO: (In scope) The new server preferences section needs to be added to Android and IOS perhaps? TODO: (out of scope) GamePlayerUtil has a bunch on non localized english strings that should be converted to localized * Fixed unused import * Resolved merge conflicts Added server settings to the reset to defaults function
5 lines
237 B
Plaintext
5 lines
237 B
Plaintext
# Forge server port. Values under 1024 won't work on Mac OSX or on the various
|
|
# *nixes.
|
|
NET_PORT=36743
|
|
#This determines if Forge should attempt to open a port automatically, on supported routers, using UPnP
|
|
UPnP=ASK # ASK, ALWAYS, NEVER |