mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
chasquid-util: Use server for aliases-resolve and domaininfo-remove
This patch makes chasquid-util's aliases-resolve and domaininfo-remove commands talk to the chasquid server (via the new localrpc server). For aliases-resolve, currently has fairly hacky logic which reimplements a bunch of the servers', and is also incomplete because it does not support hooks. In this patch we fix that by having it talk to the server, where we get authoritative responses and have no issues with aliases hooks. This resolves https://github.com/albertito/chasquid/issues/18. For domaininfo-remove, currently its implementation is also very hacky since it manipulates files behind the servers' back and without even using the internal library. In this patch we fix that by doing the operation through the server, avoiding the need for those hacks, and also remove the need to manually reload the server afterwards.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
|
||||
.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.43)
|
||||
.\"
|
||||
.\" Standard preamble:
|
||||
.\" ========================================================================
|
||||
@@ -133,7 +133,7 @@
|
||||
.\" ========================================================================
|
||||
.\"
|
||||
.IX Title "chasquid-util 1"
|
||||
.TH chasquid-util 1 "2018-05-20" "" ""
|
||||
.TH chasquid-util 1 "2023-07-30" "" ""
|
||||
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
||||
.\" way too many mistakes in technical documents.
|
||||
.if n .ad l
|
||||
@@ -174,11 +174,11 @@ Check the user's password.
|
||||
Check the integrity of the domain's users database.
|
||||
.IP "\fBaliases-resolve\fR \fIaddr\fR" 8
|
||||
.IX Item "aliases-resolve addr"
|
||||
Resolve the given address.
|
||||
Resolve the given address. Talks to the running chasquid instance.
|
||||
.IP "\fBdomaininfo-remove\fR \fIdomain\fR" 8
|
||||
.IX Item "domaininfo-remove domain"
|
||||
Remove the domain information entry. This can be used to manually allow a
|
||||
security level downgrade.
|
||||
security level downgrade. Talks to the running chasquid instance.
|
||||
.IP "\fBprint-config\fR" 8
|
||||
.IX Item "print-config"
|
||||
Parse and print the configuration in a human-readable way.
|
||||
|
||||
@@ -46,12 +46,12 @@ Check the integrity of the domain's users database.
|
||||
|
||||
=item B<aliases-resolve> I<addr>
|
||||
|
||||
Resolve the given address.
|
||||
Resolve the given address. Talks to the running chasquid instance.
|
||||
|
||||
=item B<domaininfo-remove> I<domain>
|
||||
|
||||
Remove the domain information entry. This can be used to manually allow a
|
||||
security level downgrade.
|
||||
security level downgrade. Talks to the running chasquid instance.
|
||||
|
||||
=item B<print-config>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user