Skip to content
Snippets Groups Projects
Commit c99e97c1 authored by Éloïs's avatar Éloïs
Browse files

Merge branch 'elois/bmas' into 'dev'

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

See merge request nodes/typescript/duniter!1286
parents f3060873 e572326d
Branches
Tags
1 merge request!1286[fix] bma: bma endpoint should be autoset to BMAS whe remoteport is 443
......@@ -269,6 +269,9 @@ export class BMAPI extends stream.Transform {
function getEndpoint(theConf:NetworkConfDTO) {
let endpoint = 'BASIC_MERKLED_API';
if (theConf.remoteport && theConf.remoteport == 443) {
endpoint = 'BMAS';
}
if (theConf.remotehost) {
if (theConf.remotehost.match(BMAConstants.HOST_ONION_REGEX)) {
endpoint = 'BMATOR';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment