Skip to content
Snippets Groups Projects

[fix] bma: bma endpoint should be autoset to BMAS whe remoteport is 443

Merged Éloïs requested to merge elois/bmas into dev
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -269,6 +269,9 @@ export class BMAPI extends stream.Transform {
@@ -269,6 +269,9 @@ export class BMAPI extends stream.Transform {
function getEndpoint(theConf:NetworkConfDTO) {
function getEndpoint(theConf:NetworkConfDTO) {
let endpoint = 'BASIC_MERKLED_API';
let endpoint = 'BASIC_MERKLED_API';
 
if (theConf.remoteport && theConf.remoteport == 443) {
 
endpoint = 'BMAS';
 
}
if (theConf.remotehost) {
if (theConf.remotehost) {
if (theConf.remotehost.match(BMAConstants.HOST_ONION_REGEX)) {
if (theConf.remotehost.match(BMAConstants.HOST_ONION_REGEX)) {
endpoint = 'BMATOR';
endpoint = 'BMATOR';
Loading