Project

General

Profile

Feature #992

Add connection support as URL

Added by David Demelier over 1 year ago.

Status:
New
Priority:
Normal
Category:
irccdctl
Target version:
Start date:
01/30/2019
Due date:
% Done:

0%

Estimated time:
2.00 h
MFD after:
MFD revision:
Branch:
default
Bookmark:
@
Platform:

Description

If liburiparser is found, make irccdctl able to connect to a irccd instance using an URL.

Proposed formats (examples)

  • ip://127.0.0.1:9999 (connect to ipv4 or ipv6 on 127.0.0.1, port 9999)
  • ip::8888?ipv6=false (force ipv4 only on 192.168.1.23, port 8888 with password secret)
  • ip+ssl://127.0.0.1:6767 (connect to 127.0.0.1, port 6767 using SSL)
  • unix:///tmp/irccd.socket (connect to unix /tmp/irccd.socket)
  • unix://secret@/tmp/irccd.socket (connect to unix /tmp/irccd.socket with password secret)
  • unix+ssl:///tmp/irccd-secure.socket

Irccdctl command line

Previous options were removed to avoid collision with command options.

Using -U argument.

irccdctl -U unix:///tmp/irccd.socket server-list

In configuration

All legacy options are kept, a new type url is added.

[connect]
type = url
url = "tcp:///tmp/irccd.socket" 

Also available in: Atom PDF