]> granicus.if.org Git - ejabberd/commitdiff
Fix s2s test
authorPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 21 Nov 2016 11:06:45 +0000 (12:06 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 21 Nov 2016 11:06:58 +0000 (12:06 +0100)
test/ejabberd_SUITE_data/ejabberd.yml
test/suite.erl

index 29243d6837de415ed0331d829f5f263df6d15d78..9d663a1168fd48560ec2c235af3915937f438d61 100644 (file)
@@ -456,6 +456,7 @@ route_subdomains: s2s
 domain_certfile: CERTFILE
 s2s_use_starttls: false
 s2s_cafile: CAFILE
+outgoing_s2s_port: @@s2s_port@@
 shaper: 
   fast: 50000
   normal: 10000
index a288a5f663a565492fdf1c661635d0100f1be251..e2390c599cfebb540d11f73ba2c16b91ebb8767e 100644 (file)
@@ -142,7 +142,9 @@ process_config_tpl(Content, [{Name, DefaultValue} | Rest]) ->
               V3 ->
                   V3
           end,
-    NewContent = binary:replace(Content, <<"@@",(atom_to_binary(Name, latin1))/binary, "@@">>, Val),
+    NewContent = binary:replace(Content,
+                               <<"@@",(atom_to_binary(Name,latin1))/binary, "@@">>,
+                               Val, [global]),
     process_config_tpl(NewContent, Rest).
 
 stream_header(Config) ->