diff --git a/embed/templates/scripts/run_dm-master.sh.tpl b/embed/templates/scripts/run_dm-master.sh.tpl index 39fde5e418..074f1a76df 100644 --- a/embed/templates/scripts/run_dm-master.sh.tpl +++ b/embed/templates/scripts/run_dm-master.sh.tpl @@ -27,7 +27,7 @@ exec bin/dm-master/dm-master \ --name="{{.Name}}" \ --master-addr="0.0.0.0:{{.Port}}" \ --advertise-addr="{{.IP}}:{{.Port}}" \ - --peer-urls="{{.Scheme}}://{{.IP}}:{{.PeerPort}}" \ + --peer-urls="{{.Scheme}}://0.0.0.0:{{.PeerPort}}" \ --advertise-peer-urls="{{.Scheme}}://{{.IP}}:{{.PeerPort}}" \ --log-file="{{.LogDir}}/dm-master.log" \ --data-dir="{{.DataDir}}" \ diff --git a/embed/templates/scripts/run_dm-master_scale.sh.tpl b/embed/templates/scripts/run_dm-master_scale.sh.tpl index 13a31977aa..41fd33a678 100644 --- a/embed/templates/scripts/run_dm-master_scale.sh.tpl +++ b/embed/templates/scripts/run_dm-master_scale.sh.tpl @@ -24,7 +24,7 @@ exec bin/dm-master/dm-master \ --name="{{.Name}}" \ --master-addr="0.0.0.0:{{.Port}}" \ --advertise-addr="{{.IP}}:{{.Port}}" \ - --peer-urls="{{.Scheme}}://{{.IP}}:{{.PeerPort}}" \ + --peer-urls="{{.Scheme}}://0.0.0.0:{{.PeerPort}}" \ --advertise-peer-urls="{{.Scheme}}://{{.IP}}:{{.PeerPort}}" \ --log-file="{{.LogDir}}/dm-master.log" \ --data-dir="{{.DataDir}}" \