Skip to content

Commit e5de23b

Browse files
authored
Merge pull request #777 from AleksandrShibanov/canal-use-localhost-option
canal: use localhost option
2 parents b096301 + 6234eda commit e5de23b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

canal/canal.go

+1
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ func (c *Canal) prepareSyncer() error {
450450
TLSConfig: c.cfg.TLSConfig,
451451
Logger: c.cfg.Logger,
452452
Dialer: c.cfg.Dialer,
453+
Localhost: c.cfg.Localhost,
453454
}
454455

455456
if strings.Contains(c.cfg.Addr, "/") {

canal/config.go

+3
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ type Config struct {
9696

9797
//Set Dialer
9898
Dialer client.Dialer
99+
100+
//Set Localhost
101+
Localhost string
99102
}
100103

101104
func NewConfigWithFile(name string) (*Config, error) {

0 commit comments

Comments
 (0)