mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
Various bug fixes for URI format parsing
This commit is contained in:
@@ -144,9 +144,6 @@ function trojan(proxy) {
|
||||
}
|
||||
}
|
||||
|
||||
// tls
|
||||
appendIfPresent(`,over-tls=${proxy.tls}`, 'tls');
|
||||
|
||||
// tls fingerprint
|
||||
appendIfPresent(
|
||||
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
|
||||
|
||||
@@ -25,5 +25,6 @@ export class Result {
|
||||
}
|
||||
|
||||
export function isPresent(obj, attr) {
|
||||
return typeof _.get(obj, attr) !== 'undefined';
|
||||
const data = _.get(obj, attr);
|
||||
return typeof data !== 'undefined' && data !== null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user