Commit Graph

22093 Commits

Author SHA1 Message Date
Benau
58f4579062 Use getMonoTimeMs() to avoid rand() return the same value in Windows 2020-02-01 14:15:44 +08:00
Benau
10a158db70 Use correct encoding for error message from getaddrinfo in Windows 2020-02-01 14:05:52 +08:00
Benau
33d228bb6d Clean up header files and remove unused class 2020-02-01 10:45:15 +08:00
Benau
23ad6f09a6 Clean up direct connection code with full IPv6 support 2020-02-01 09:30:40 +08:00
Benau
1e9dab821c Allow pre-set IP type in config.xml 2020-01-31 13:20:11 +08:00
Benau
ab315fab4e Remove firewall restriction for IPv6 in server documentation 2020-01-31 00:44:26 +08:00
Benau
17bf24c6d1 Avoid player score being reset if connection to stk addons is broken 2020-01-30 16:55:40 +08:00
Benau
652bf5480a Move port detection to Network class 2020-01-30 16:47:19 +08:00
Benau
e1188c5532 Fix non random client port (NetworkConfig initialized too early) 2020-01-30 11:30:54 +08:00
Benau
964757193b Avoid using IPv6 socket address in IPv4 socket
Also make reload the lan broadcast addresses each time to catch network change
2020-01-30 11:25:03 +08:00
Benau
86dae991e6 Fix SandboxViolation in iOS for IPv6 socket 2020-01-29 11:04:02 +08:00
Benau
0cb62803b2 Port stun address resolve to use SocketAddress 2020-01-29 01:24:38 +08:00
Benau
2c78625ef6 Allow print NAT64 address in IPv4 form for better debugging 2020-01-28 15:15:20 +08:00
Benau
40b0a6371e Allow port specified inside str for SocketAddress 2020-01-28 13:03:37 +08:00
Benau
61109f4aad Remove TransportAddress in most server code 2020-01-28 11:47:08 +08:00
Benau
05732c2e7d Only register server with a valid address 2020-01-28 01:26:12 +08:00
Benau
3d0ef44014 Fix android crash for inet_ntop 2020-01-27 15:48:49 +08:00
Benau
055ed23e10 Remove TransportAddress in STKPeer 2020-01-27 14:32:18 +08:00
Benau
e18bcd62e6 Add IPv6 LAN server discovery
Broadcasting to windows doesn't work as the windows firewall seems
to block all IPv6 multicast
2020-01-27 13:48:57 +08:00
Benau
9132fba714 Add firewall penetration for IPv6 client 2020-01-27 12:07:28 +08:00
Benau
6abd3bbf69 Add socket address to support both IPv4 and IPv6 2020-01-27 11:50:15 +08:00
David Carlier
a79a2a7fab mcpp dependency possible leak fix proposal 2020-01-26 18:52:14 +00:00
David Carlier
ba150e8659 bullet build warning fix replacing by C++ casting 2020-01-25 21:53:12 +00:00
Benau
9928cf726f Add auto handling of IPv6 only server depends on network type 2020-01-26 00:41:03 +08:00
Benau
d2f2c6cf1f Allow setting a zero address as long as there is an IPv6 address 2020-01-25 11:15:34 +08:00
Benau
6d2e060bf2 Disable IPv6 socket in server for IPv4 only network 2020-01-24 10:28:23 +08:00
Benau
58a2010d0f Fix intercept callback for IPv6 2020-01-24 10:26:44 +08:00
Benau
8d94f973cc Allow NAT64 client to connect to firewalled IPv4 server 2020-01-23 16:50:47 +08:00
Benau
63c7c711d5 Fix IPv4 only server in dual stack network 2020-01-23 16:43:46 +08:00
Benau
8486b11da6 Allow setting public address for IPv6 client 2020-01-23 01:16:02 +08:00
Benau
aed64dfd1f Rename function to make it clearer 2020-01-22 15:56:47 +08:00
Benau
2ca1c5555c Allow connect to IPv4 only server with NAT64 for all platforms 2020-01-20 16:49:27 +08:00
Benau
4172a2d765 Add iOS toolchain for cross compiling 2020-01-20 15:31:45 +08:00
Benau
50944bb8c3 Add debug logging for iOS device 2020-01-20 14:58:03 +08:00
David Carlier
b3e76e082e FreeBSD online linker URL support 2020-01-19 12:15:16 +00:00
Benau
f83f74598d Fix valgrind warning 2020-01-19 11:46:03 +08:00
Benau
1e53f67354 Fix no graphics crashing 2020-01-19 10:50:12 +08:00
Benau
726a40ae2d Use IP detect code in server screen for more info to user 2020-01-19 10:20:25 +08:00
Benau
fcdec55bc1 Add tools for advanced IPv4 and IPv6 detection 2020-01-19 10:13:17 +08:00
Benau
7b3559ba69 Add IPv4 only stun for later usage 2020-01-19 01:00:48 +08:00
David Carlier
d97a1ce1ef removing compilation warning explicitly showing enum origin
to avoid confusions even though they have same values.
FreeBSD recognised as os in stats point of view.
2020-01-18 13:32:50 +00:00
Benau
9085658653 Add ipv6 geolocation table 2020-01-16 11:28:52 +08:00
Benau
0ef632114b Use another source of ip mapping with ipv6 support 2020-01-16 10:57:56 +08:00
QwertyChouskie
a68e652fa6 Skin padding implementation (#4195)
* Implement box model spacing for skin elements

* Account for padding when spacing out on-screen keyboard

* Fix padding for Tutorial button on Help screen

* Reduce spacing between tabs
(Also removed a couple duplicated files.)

* Change verticalTab margin as per Benau's request
Uses `vborder_out_portion`, which is how it was done before.

* Remove duplicate files

* Adjust spacings after PNGs were adjusted in a previous commit

* Improve spacing of verticalTabs

* Slightly increase the tabbar width in the Options screens

* Slightly increase the tabbar width in the help screens
2020-01-13 13:02:50 +08:00
David Carlier
7951d1a92d Reducing significantly build warning on MacOS
OpenGL deprecated APIs, gl/gl3 inclusion, OpenAL deprecated API.
Implementing process path for the crash reporter.
2020-01-12 07:28:15 +00:00
Benau
5ce95ba5e7 Fix clang warning 2020-01-12 12:59:02 +08:00
David Carlier
a6aa0aa9eb crash reporter, getting process path in native way on FreeBSD. 2020-01-11 21:23:45 +00:00
Benau
1e4b0ccb4e Add resetGlobalVariables for message queue 2020-01-11 00:21:22 +08:00
CodedOre
13fca9a0eb Adapting MessageQueue for Tutorial (#4204)
* Make Script-Message more adaptable

* Highly WIP-TriggerMessage

This is commited for discussion, so it is far away from complete or good or anything else.

* One Place for the static Message!

* Fixing that clear() dont clear the static message.

* Discard Static Messages when Race is closed.

In Order to not leave StaticMessages if an Race is quit, now closing the race discard StaticMessages.

* Allow for co-existence of static and normal message

* Fix indentation and Enum Order

* Clean up used StaticMessages.

* Clean StaticMessages up Round 2
2020-01-11 00:12:56 +08:00
Benau
c7c5a54083 Update contributor name based on request 2020-01-10 08:20:52 +08:00