MCPcopy Create free account
hub / github.com/M1r0ku/frp-Modify / genTLSConfig

Method genTLSConfig

frp-dev/pkg/plugin/client/https2https.go:120–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120func (p *HTTPS2HTTPSPlugin) genTLSConfig() (*tls.Config, error) {
121 cert, err := tls.LoadX509KeyPair(p.crtPath, p.keyPath)
122 if err != nil {
123 return nil, err
124 }
125
126 config := &tls.Config{Certificates: []tls.Certificate{cert}}
127 return config, nil
128}
129
130func (p *HTTPS2HTTPSPlugin) Handle(conn io.ReadWriteCloser, realConn net.Conn, extraBufToLocal []byte) {
131 wrapConn := frpNet.WrapReadWriteCloserToConn(conn, realConn)

Callers 1

NewHTTPS2HTTPSPluginFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected