"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "web/frps/src/utils/proxy.js" between
frp-0.36.1.tar.gz and frp-0.36.2.tar.gz

About: frp is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the Internet. As of now, it supports TCP and UDP, as well as HTTP and HTTPS protocols, and it also has a P2P connect mode.

proxy.js  (frp-0.36.1):proxy.js  (frp-0.36.2)
skipping to change at line 57 skipping to change at line 57
class HttpProxy extends BaseProxy { class HttpProxy extends BaseProxy {
constructor(proxyStats, port, subdomain_host) { constructor(proxyStats, port, subdomain_host) {
super(proxyStats) super(proxyStats)
this.type = "http" this.type = "http"
this.port = port this.port = port
if (proxyStats.conf != null) { if (proxyStats.conf != null) {
this.custom_domains = proxyStats.conf.custom_domains this.custom_domains = proxyStats.conf.custom_domains
this.host_header_rewrite = proxyStats.conf.host_header_rewrite this.host_header_rewrite = proxyStats.conf.host_header_rewrite
this.locations = proxyStats.conf.locations this.locations = proxyStats.conf.locations
if (proxyStats.conf.sub_domain != "") { if (proxyStats.conf.subdomain != "") {
this.subdomain = proxyStats.conf.sub_domain + "." + subdomain_ho this.subdomain = proxyStats.conf.subdomain + "." + subdomain_hos
st t
} else { } else {
this.subdomain = "" this.subdomain = ""
} }
} else { } else {
this.custom_domains = "" this.custom_domains = ""
this.host_header_rewrite = "" this.host_header_rewrite = ""
this.subdomain = "" this.subdomain = ""
this.locations = "" this.locations = ""
} }
} }
} }
class HttpsProxy extends BaseProxy { class HttpsProxy extends BaseProxy {
constructor(proxyStats, port, subdomain_host) { constructor(proxyStats, port, subdomain_host) {
super(proxyStats) super(proxyStats)
this.type = "https" this.type = "https"
this.port = port this.port = port
if (proxyStats.conf != null) { if (proxyStats.conf != null) {
this.custom_domains = proxyStats.conf.custom_domains this.custom_domains = proxyStats.conf.custom_domains
if (proxyStats.conf.sub_domain != "") { if (proxyStats.conf.subdomain != "") {
this.subdomain = proxyStats.conf.sub_domain + "." + subdomain_ho this.subdomain = proxyStats.conf.subdomain + "." + subdomain_hos
st t
} else { } else {
this.subdomain = "" this.subdomain = ""
} }
} else { } else {
this.custom_domains = "" this.custom_domains = ""
this.subdomain = "" this.subdomain = ""
} }
} }
} }
 End of changes. 2 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)