Changeset 455 in code for trunk/cmd/soju


Ignore:
Timestamp:
Feb 24, 2021, 6:41:12 PM (4 years ago)
Author:
contact
Message:

Add irc to ALPN protocols

The new ALPN token has been approved [1]. We can start using it now.

[1]: https://mailarchive.ietf.org/arch/msg/tls-reg-review/i8YyT82XUtEgR-oXMG3sbyWYT8E/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmd/soju/main.go

    r449 r455  
    5656                        log.Fatalf("failed to load TLS certificate and key: %v", err)
    5757                }
    58                 tlsCfg = &tls.Config{Certificates: []tls.Certificate{cert}}
     58                tlsCfg = &tls.Config{
     59                        NextProtos:   []string{"irc"},
     60                        Certificates: []tls.Certificate{cert},
     61                }
    5962        }
    6063
Note: See TracChangeset for help on using the changeset viewer.