We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ac8ab1 commit de4c635Copy full SHA for de4c635
net/portmapper/pcp.go
@@ -115,6 +115,9 @@ func parsePCPMapResponse(resp []byte) (*pcpMapping, error) {
115
if !ok {
116
return nil, fmt.Errorf("Invalid PCP common header")
117
}
118
+ if res.ResultCode == pcpCodeNotAuthorized {
119
+ return nil, fmt.Errorf("PCP is implemented but not enabled in the router")
120
+ }
121
if res.ResultCode != pcpCodeOK {
122
return nil, fmt.Errorf("PCP response not ok, code %d", res.ResultCode)
123
0 commit comments