코드가 하는 일을 읽고, 가려진 빈칸에 직접 이름을 지어 넣으세요. 빈칸 폭이 원본 이름의 글자 수입니다.
1function protocol(){ 2 var proto = this.socket.encrypted 3 ? 'https' 4 : 'http'; 5 var trust = this.app.get('trust proxy fn'); 6 7 if (!trust(this.socket.remoteAddress, 0)) { 8 return proto; 9 } 10 11 var = this.get('X-Forwarded-Proto') || proto 12 var index = .indexOf(',') 13 14 return index !== -1 15 ? .substring(0, index).trim() 16 : .trim() 17}