Commit graph

10 commits

Author SHA1 Message Date
Zach Toogood
e98f785ebb Core: Refactor ZMQ usage into ZMQService 2026-06-15 15:51:48 +01:00
Corey Sotiropoulos
4093b9e694
Format settings and enforce via sanity checks 2025-10-28 20:18:59 +00:00
Zach Toogood
1007575754 db: p.stmt and query will now reconnect after disconnects 2024-12-21 14:45:12 +00:00
Zach Toogood
15598cf76f [world] Add ENABLE_HTTP setting
- Move HTTP server onto less popular default port
- Move HTTP serving logic onto own thread to not block xi_world constructor
2023-02-15 12:04:06 +00:00
Zach Toogood
4c3f84b784 [world] Enable world server build
- Built on top of application.h
- Only contains the parts of Application and a simple toy HTTP server for now
2022-12-13 10:33:20 +00:00
Zach Toogood
086105e82f [connect] Add research about port 51220 2022-11-07 15:12:42 +00:00
jmcdaniel83
15faf4f82a
Update TCP/UDP Settings to Reside in the new network.lua file (#2348)
* Moving all packet configuration into the network.lua file
 + to differentiate between the two sets I've added either UDP_ or TCP_ to the key name
 + all items have been provided along with the comments specified
 + for IP rules, the TCP_ALLOW, TCP_DENY keys have been updated to contain lists
   + default is empty string (no-op) in the code during setup
   + each entry must be separated with a 'comma' character
  - removed old configuration files (no longer referenced)
  + all settings now consistent across project

* updating dockerfile for readability
 + format changes, no logical changes

* Adding use of the new settings get<T>() method for all configuration items.
 + added two new booleans (udp_debug, and tcp_debug) to differentiate between them (not yet used)
 + connect_check_() method for loops updated to leverage the range for loop to simplify the code and for more readabilty using the new entry element each loop
 + access_ipmask() updated to allow for emtpy strings which equate to a no-op
 + adding new methods to leverage the new settings get<T> method
   + get_access_list() takes the parsed access list string "entry,entry,..." and provides a list of AccessControl objects that have been successfully parsed, all issues with the entries will be shown in an error message.
   + socket_udp_setup() method added to setup our UDP socket (only fetches the debug setting right now)
   + socket_tcp_setup() method added to setup the TCP socket settings. Much simpler with the new get<T>() method.  Only issue I had was with the list of allow and deny IP addresses as we would need to extend the get<T>() method to allow LUA lists { "a", "b" }.  All other properties are straight forward using the get<T>() method.  The only option that is not carried over is the "import" command (not sure this is used anymore).
   - socket_config_read() now deprecated
 + socket_init_tcp() method updated to leverage new TCP setup method, some formatting for readability
 + socket_init_udp() levearging new UDP setup method

* Moved handling of empty strings for access/deny strings to where the access list is collected
 + moved handling of empty strings from access_ipmask() to get_access_list()
 + adding more log information of what was parsed in the new socket_tcp_setup() function

* adding some helpful critical messages when nav meshes can not be loaded during boot

* Adding all options for TCP_ORDER setting, more examples for ALLOW and DENY

* Reverting dockerfile back to original to make merge easier

* Corrected proper formating to the file

* Have added a helpful note to signify the settings that should be left alone
 + most options can render your instance unusable unless you know what you are doing.
2022-07-20 16:34:35 +03:00
TeoTwawki
fb3de79808 Change default Login ports back from loopback to bind-all again.
A longstanding issue is that when changed these can block logins even though using loopback should've been fine.

See 7cf6d1e129

and 9808381604
2022-07-01 22:40:54 -04:00
Zach Toogood
77ba1bb8dc [core] Finish hooking up new settings in core 2022-06-26 21:22:27 +03:00
Zach Toogood
8a62c7cd1a [settings] Start porting settings to new system 2022-06-26 21:22:27 +03:00