Skip to content

Commit b73d4c6

Browse files
committed
v1.1.2
1. Changed version to v1.1.2.
2 parents d3f82e4 + f3a1237 commit b73d4c6

File tree

17 files changed

+2368
-1968
lines changed

17 files changed

+2368
-1968
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Minecraft Versions before 12w04a are **NOT SUPPORTED**!<br/>
2323
* mcrelay.conf.example: config file example of mcrelay.
2424
* mcrelay.service.forking.example: service unit file of mcrelay for systemd(using runmode: forking).
2525
* mcrelay.service.simple.example: service unit file of mcrelay for systemd(using runmode: simple).
26-
* mod/*.h: header files of essential modules.
26+
* mod: directory of essential modules.
2727
* loglevel.info: definations for messages.
2828

2929
## Compile
@@ -51,6 +51,7 @@ proxy_pass proxy_type
5151
ident_name destination_object
5252
proxy_pass proxy_type
5353
ident_name destination_object
54+
default destination_object
5455
</pre>
5556
### Explanation
5657
* runmode: set program's runmode.
@@ -74,6 +75,7 @@ If not set, the server will detect SRV record first(defined in address_d).<br/>
7475
If SRV record resolve failed, it will fallback to normal address resolve, also connect to this address with port 25565.<br/>
7576
**For rewrite enabled relay, it will use actual connect configuration to rewrite.**
7677
>>* path: the socket file you wish to connect.
78+
* default: optional, set a default server to connect when client don't match any valid virtual host. (Intentionally not support rewrite here.) (Security suggestion: Don't use this feature unless you know what you are doing.)
7779
### Example
7880
<pre>
7981
runmode forking
@@ -85,4 +87,5 @@ proxy_pass rewrite
8587
proxy_pass relay
8688
mc1.example.com 127.0.0.1:25566
8789
mc2.example.com 192.168.1.254:25565
90+
default 192.168.1.254:25565
8891
</pre>

0 commit comments

Comments
 (0)