osa1 / tiny

A terminal IRC client
MIT License
1.01k stars 60 forks source link

allow connection to ssl server via command line #59

Open DirectorX opened 6 years ago

DirectorX commented 6 years ago

allow connection to ssl server via command line

Edit: using the /connect command

osa1 commented 6 years ago

If you add that server to your .tinyrc.yml you can connect to it by providing the server's name as command line argument to tiny. Suppose the server is chat.foobarbaz.net, add it to your .tinyrc.yml and run tiny as tiny foobarbaz.

Does this not work for you?

DirectorX commented 6 years ago

I didn't mean that but it is nice.What I mean is to allow connection to ssl irc servers using /connect command.

  1. Dec 2017 22:07 by notifications@github.com:

If you add that server to your > .tinyrc.yml> you can connect to it by providing the server's name as command line argument to tiny. Suppose the server is > chat.foobarbaz.net> , add it to your .tinyrc.yml> and run tiny as> tiny foobarbaz`.

Does this not work for you?

— You are receiving this because you authored the thread. Reply to this email directly, > view it on GitHub> , or > mute the thread> .

osa1 commented 6 years ago

What I mean is to allow connection to ssl irc servers using /connect command.

Ah! I misunderstood. Yeah /connect should support SSL somehow. I don't know how to tell SSL from non-SSL servers so let's think about this for a bit.

BrianOn99 commented 6 years ago

I investigated how hexchat handle it. It cannot automatically tell SSL server from non-SSL server.

Their docs: http://hexchat.readthedocs.io/en/latest/settings.html

User need to tell hexchat that it should use SSL. For example, wIth the url chat.freenode.net/6697, I cannot join the server, probably because hexchat is connecting in non-SSL mode. With chat.freenode.net/+6697, connection will success.