Currently, the fedify tunnel command provides a -s/--service option to choose the tunneling service (localhost.run, serveo.net, or pinggy.io). However, two other commands that use tunneling internally don't have this option.
The fedify lookup command uses tunneling when --authorized-fetch is specified, and fedify inbox uses tunneling by default unless -T/--no-tunnel is provided. In both cases, users cannot select which tunneling service to use.
Rationale
This inconsistency is problematic when the default tunneling service is unavailable or has poor connectivity. Users should be able to switch to alternative services just like they can with fedify tunnel.
Proposed change
Add a --tunnel-service option to fedify lookup and fedify inbox commands. For consistency, also add --tunnel-service as an alias to the existing -s/--service option in fedify tunnel (keeping both for backward compatibility).
For fedify lookup, the option would only apply when --authorized-fetch is used. For fedify inbox, it would apply when tunneling is enabled (no -T/--no-tunnel flag).
The new option should only have a long-form (no short abbreviation) since suitable short-form options are already taken (-t for --traverse, -S for --suppress-errors). Since tunneling service selection isn't frequently changed, requiring the full option name is acceptable.
Currently, the
fedify tunnelcommand provides a-s/--serviceoption to choose the tunneling service (localhost.run, serveo.net, or pinggy.io). However, two other commands that use tunneling internally don't have this option.The
fedify lookupcommand uses tunneling when--authorized-fetchis specified, andfedify inboxuses tunneling by default unless-T/--no-tunnelis provided. In both cases, users cannot select which tunneling service to use.Rationale
This inconsistency is problematic when the default tunneling service is unavailable or has poor connectivity. Users should be able to switch to alternative services just like they can with
fedify tunnel.Proposed change
Add a
--tunnel-serviceoption tofedify lookupandfedify inboxcommands. For consistency, also add--tunnel-serviceas an alias to the existing-s/--serviceoption infedify tunnel(keeping both for backward compatibility).For
fedify lookup, the option would only apply when--authorized-fetchis used. Forfedify inbox, it would apply when tunneling is enabled (no-T/--no-tunnelflag).The new option should only have a long-form (no short abbreviation) since suitable short-form options are already taken (
-tfor--traverse,-Sfor--suppress-errors). Since tunneling service selection isn't frequently changed, requiring the full option name is acceptable.