mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 16:00:25 +08:00 
			
		
		
		
	鉴权访问日志标签增加"auth:"前缀
This commit is contained in:
		@@ -43,7 +43,7 @@ func (this *HTTPRequest) doAuth() (shouldStop bool) {
 | 
				
			|||||||
			if uriChanged {
 | 
								if uriChanged {
 | 
				
			||||||
				this.uri = newURI
 | 
									this.uri = newURI
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			this.tags = append(this.tags, ref.AuthPolicy.Type)
 | 
								this.tags = append(this.tags, "auth:"+ref.AuthPolicy.Type)
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			// Basic Auth比较特殊
 | 
								// Basic Auth比较特殊
 | 
				
			||||||
@@ -64,7 +64,7 @@ func (this *HTTPRequest) doAuth() (shouldStop bool) {
 | 
				
			|||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			this.writer.WriteHeader(http.StatusUnauthorized)
 | 
								this.writer.WriteHeader(http.StatusUnauthorized)
 | 
				
			||||||
			this.tags = append(this.tags, ref.AuthPolicy.Type)
 | 
								this.tags = append(this.tags, "auth:"+ref.AuthPolicy.Type)
 | 
				
			||||||
			return true
 | 
								return true
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user