Commit 8c141ae7 authored by harrylee's avatar harrylee Committed by 33cn

共识端口监听改为监听外网端口

parent 4d60a35c
......@@ -193,8 +193,7 @@ func (rc *raftNode) serveRaft() {
rlog.Error(fmt.Sprintf("raft: Failed parsing URL (%v)", err.Error()))
panic(err)
}
ln, err := newStoppableListener(rc.ctx, nodeURL.Host)
ln, err := newStoppableListener(rc.ctx, fmt.Sprintf(":%s",nodeURL.Port()))
if err != nil {
rlog.Error(fmt.Sprintf("raft: Failed to listen rafthttp (%v)", err.Error()))
panic(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment