Can't matrix login,how to add proxy

hi, i’m in china. some ip is blocked, I try add proxy to ubuntu bash terminal and win 10 cmd terminal ,both can ‘curl’ work, but both can’t matrix login,

it show in win10:

 `Matrix CLI : User Authentication Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 1080 1080:80`

Upgrade Check Error: { Error: connect ETIMEDOUT at Object.exports._errnoException (util.js:1023:11) at exports._exceptionWithHostPort (util.js:1046:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14) code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect', address: '', port: 443 }