Software /
code /
prosody
Annotate
core/features.lua @ 13127:f45a29b32f7a
mod_http: Make RFC 7239 Forwarded opt-in for now to be safe
Supporting both methods at the same time may open to spoofing attacks,
whereby a client sends a Forwarded header that is not stripped by a
reverse proxy, leading Prosody to use that instead of the X-Forwarded-*
headers actually sent by the proxy.
By only supporting one at a time, it can be configured to match what the
proxy uses.
Disabled by default since implementations are sparse and X-Forwarded-*
are everywhere.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 03 Jun 2023 21:53:20 +0200 |
parent | 13111:8576f94ac90a |
child | 13170:082c7d856e61 |
rev | line source |
---|---|
12972
ead41e25ebc0
core: Prefix module imports with prosody namespace
Kim Alvefur <zash@zash.se>
parents:
12957
diff
changeset
|
1 local set = require "prosody.util.set"; |
12252
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
2 |
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 return { |
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
4 available = set.new{ |
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
5 -- mod_bookmarks bundled |
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
6 "mod_bookmarks"; |
12655
a5a0783e9241
features: Add "permissions" feature for role-auth
Matthew Wild <mwild1@gmail.com>
parents:
12252
diff
changeset
|
7 -- Roles, module.may and per-session authz |
a5a0783e9241
features: Add "permissions" feature for role-auth
Matthew Wild <mwild1@gmail.com>
parents:
12252
diff
changeset
|
8 "permissions"; |
12955
d32926897ca4
core.features: Add feature for prosody.loader
Kim Alvefur <zash@zash.se>
parents:
12655
diff
changeset
|
9 -- prosody.* namespace |
d32926897ca4
core.features: Add feature for prosody.loader
Kim Alvefur <zash@zash.se>
parents:
12655
diff
changeset
|
10 "loader"; |
12957 | 11 -- "keyval+" store |
12 "keyval+"; | |
13110
d5f322dd424b
mod_s2s: Add event where resolver for s2sout can be tweaked
Kim Alvefur <zash@zash.se>
parents:
12252
diff
changeset
|
13 |
d5f322dd424b
mod_s2s: Add event where resolver for s2sout can be tweaked
Kim Alvefur <zash@zash.se>
parents:
12252
diff
changeset
|
14 "s2sout-pre-connect-event"; |
12252
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
15 }; |
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
16 }; |