Audit changes
This commit is contained in:
@@ -92,7 +92,7 @@ func Peer_Validate(p *Peer) error {
|
||||
return errs.ErrInvalidPort
|
||||
}
|
||||
|
||||
if len(p.Name) == 0 {
|
||||
if len(p.Name) == 0 || len(p.Name) > 63 {
|
||||
return errs.ErrInvalidPeerName
|
||||
}
|
||||
for _, c := range p.Name {
|
||||
|
||||
Reference in New Issue
Block a user