mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
sync
This commit is contained in:
@@ -81,6 +81,7 @@ type Address struct {
|
||||
IP net.IP
|
||||
Port int
|
||||
NetWork string
|
||||
Scheme string
|
||||
}
|
||||
|
||||
func (a Address) String() string {
|
||||
@@ -93,6 +94,9 @@ func (a Address) String() string {
|
||||
func (a Address) Network() string {
|
||||
return a.NetWork
|
||||
}
|
||||
func (a Address) Nil() bool {
|
||||
return a.IP == nil && a.Name == ""
|
||||
}
|
||||
|
||||
func ReadUdpAddr(r io.Reader) (Address, error) {
|
||||
UdpAddress := Address{}
|
||||
|
||||
Reference in New Issue
Block a user