mirror of
https://github.com/therootcompany/telebit.git
synced 2025-03-03 23:30:49 +00:00
add Addr.Hostname() and Addr.Port()
This commit is contained in:
parent
73998a9403
commit
6621ccf47e
@ -46,6 +46,14 @@ func (a *Addr) Network() string {
|
||||
return a.addr + ":" + strconv.Itoa(a.port)
|
||||
}
|
||||
|
||||
func (a *Addr) Port() int {
|
||||
return a.port
|
||||
}
|
||||
|
||||
func (a *Addr) Hostname() string {
|
||||
return a.addr
|
||||
}
|
||||
|
||||
func (a *Addr) Scheme() Scheme {
|
||||
return a.scheme
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user