Skip to content
Snippets Groups Projects
Commit a1aa972e authored by Éloïs's avatar Éloïs Committed by Hugo Trentesaux
Browse files

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

parent 34a19776
No related branches found
No related tags found
No related merge requests found
...@@ -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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment