瀏覽代碼

modify by hyb for cancel permission check

hyb 7 年之前
父節點
當前提交
fb77b09def
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      httphandler.go

+ 1 - 1
httphandler.go

@@ -121,7 +121,7 @@ func checkSignature(body []byte, timestamp, signature string) bool {
 
 func checkPermission(timestamp, signature string, body []byte) (int, bool) {
 
-	if string(body) == RAWTRANSFER {
+	if string(body) != SENDCOINS {
 		return OK, true
 	}
 	if checkSignature(body, timestamp, signature) == false {