Ukusonga i-SOCKS socket nge-TLS ku-Node.js
Songa i-destination stream ebuyiswa yi-socks package nge-tls.connect futhi ugcine i-hostname yewebhusayithi ye-SNI nokuqinisekiswa kwe-certificate.
I-SocksClient.createConnection ibuyisela i-stream exhunywe kwi-destination oyicelile. Nge-HTTPS, leyo stream isadinga i-TLS handshake ngaphambi kokuthwala isicelo se-HTTP.
I-servername yi-DNS igama le-destination. I-tls.connect yezinga eliphansi ye-Node ayivuli i-SNI ngokuzenzakalelayo, futhi i-proxy hostname ayisiyo i-identity ye-certificate yewebhusayithi.