()
| 118 | } |
| 119 | |
| 120 | func (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 | |
| 130 | func (p *HTTPS2HTTPSPlugin) Handle(conn io.ReadWriteCloser, realConn net.Conn, extraBufToLocal []byte) { |
| 131 | wrapConn := frpNet.WrapReadWriteCloserToConn(conn, realConn) |
no outgoing calls
no test coverage detected