summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAleš Mrázek <ales.mrazek@nic.cz>2024-02-26 13:05:54 +0100
committerAleš Mrázek <ales.mrazek@nic.cz>2024-02-26 13:05:54 +0100
commitbaac786d50fb93e7994acc9c957d0a1011251ba3 (patch)
tree417e3f6384ac6a95da5fc6a03eb520455f59caf3 /lib
parentMerge !1504: kresctl: timeout for http request (diff)
parentdatamodel: forward: custom port and TLS are not supported for authoritative s... (diff)
downloadknot-resolver-baac786d50fb93e7994acc9c957d0a1011251ba3.tar.xz
knot-resolver-baac786d50fb93e7994acc9c957d0a1011251ba3.zip
Merge branch 'forward-auth-port' into '6.0'
forwarding to authoritative servers doesn't allow overriding ports See merge request knot/knot-resolver!1505
Diffstat (limited to 'lib')
-rw-r--r--lib/rules/api.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rules/api.h b/lib/rules/api.h
index 6ae1d8b1..bf51e4d5 100644
--- a/lib/rules/api.h
+++ b/lib/rules/api.h
@@ -229,7 +229,10 @@ typedef struct kr_rule_fwd_flags kr_rule_fwd_flags_t;
/** Insert/overwrite a forwarding rule.
*
* Into the default rule-set ATM.
- * \param targets NULL-terminated array. */
+ * \param targets NULL-terminated array.
+ *
+ * For is_auth == true we only support address, e.g. not specifying port or %interface.
+ */
KR_EXPORT
int kr_rule_forward(const knot_dname_t *apex, kr_rule_fwd_flags_t flags,
const struct sockaddr * targets[]);