add getter for serverHostname so classes based on this can access their address

This commit is contained in:
Dan Ballard 2017-01-31 20:10:27 -08:00
parent 630efa186e
commit c079f0dace
1 changed files with 6 additions and 0 deletions

View File

@ -180,3 +180,9 @@ func (srs *StandardRicochetService) OnBadUsageError(oc *OpenConnection, channelI
func (srs *StandardRicochetService) OnFailedError(oc *OpenConnection, channelID int32) {
oc.RejectOpenChannel(channelID, "FailedError")
}
// Getters
func (srs *StandardRicochetService) GetServerHostname() string {
return srs.serverHostname
}