Comparison

mod_s2sout_override/README.md @ 5632:ae62d92506dc

mod_s2sout_override: Add support for one-level wildcards (e.g. *.example.net)
author Kim Alvefur <zash@zash.se>
date Thu, 27 Jul 2023 15:04:38 +0200
parent 5631:b87a23b45725
comparison
equal deleted inserted replaced
5631:b87a23b45725 5632:ae62d92506dc
19 DNS lookups. 19 DNS lookups.
20 20
21 The special target `"*"` may be used to redirect all servers that don't have 21 The special target `"*"` may be used to redirect all servers that don't have
22 an exact match. 22 an exact match.
23 23
24 One-level wildcards like `"*.example.net"` also work.
25
24 Standard DNS SRV resolution can be restored by specifying a truthy value. 26 Standard DNS SRV resolution can be restored by specifying a truthy value.
25 27
26 ```lua 28 ```lua
27 -- Global section 29 -- Global section
28 modules_enabled = { 30 modules_enabled = {
32 34
33 s2sout_override = { 35 s2sout_override = {
34 ["example.com"] = "tcp://other.host.example:5299"; 36 ["example.com"] = "tcp://other.host.example:5299";
35 ["xmpp.example.net"] = "tcp://localhost:5999"; 37 ["xmpp.example.net"] = "tcp://localhost:5999";
36 ["secure.example"] = "tls://127.0.0.1:5270"; 38 ["secure.example"] = "tls://127.0.0.1:5270";
39 ["*.allthese.example"] = = "tcp://198.51.100.123:9999";
37 40
38 -- catch-all: 41 -- catch-all:
39 ["*"] = "tls://127.0.0.1:5370"; 42 ["*"] = "tls://127.0.0.1:5370";
40 -- bypass the catch-all, use standard DNS SRV: 43 -- bypass the catch-all, use standard DNS SRV:
41 ["jabber.example"] = true; 44 ["jabber.example"] = true;