forked from cwtch.im/cwtch
supporting ricochet app's new requirement for name field
This commit is contained in:
parent
a4846df519
commit
0eabf09a32
|
@ -208,7 +208,7 @@ func (cp *CwtchPeer) Listen() error {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
cwtchpeer.Init(cp.Profile.OnionPrivateKey, af, new(application.AcceptAllContactManager))
|
cwtchpeer.Init(cp.Profile.Name, cp.Profile.OnionPrivateKey, af, new(application.AcceptAllContactManager))
|
||||||
log.Printf("Running cwtch peer on %v", l.Addr().String())
|
log.Printf("Running cwtch peer on %v", l.Addr().String())
|
||||||
cwtchpeer.Run(l)
|
cwtchpeer.Run(l)
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -66,7 +66,7 @@ func (s *Server) Run(privateKeyFile string) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
cwtchserver.Init(pk, af, new(application.AcceptAllContactManager))
|
cwtchserver.Init("cwtch server for " + l.Addr().String()[0:16], pk, af, new(application.AcceptAllContactManager))
|
||||||
log.Printf("cwtch server running on cwtch:%s", l.Addr().String()[0:16])
|
log.Printf("cwtch server running on cwtch:%s", l.Addr().String()[0:16])
|
||||||
cwtchserver.Run(l)
|
cwtchserver.Run(l)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue