@@ -15,7 +15,7 @@ public class HttpServiceProvider
1515 /// <returns></returns>
1616 public static void LogAccess ( HttpContext context )
1717 {
18- if ( ! ClusterRequiredData . Config . DisableAccessLog )
18+ if ( ! PublicData . Config . DisableAccessLog )
1919 {
2020 context . Request . Headers . TryGetValue ( "user-agent" , out StringValues value ) ;
2121 Logger . Instance . LogInfo ( $ "{ context . Request . Method } { context . Request . Path . Value } { context . Request . Protocol } <{ context . Response . StatusCode } > - [{ context . Connection . RemoteIpAddress } ] { value . FirstOrDefault ( ) } ") ;
@@ -32,7 +32,7 @@ public static async Task Measure(HttpContext context, Cluster cluster, int size)
3232 context . Request . Query . TryGetValue ( "s" , out StringValues s ) ;
3333 context . Request . Query . TryGetValue ( "e" , out StringValues e ) ;
3434 bool valid = Utils . CheckSign ( context . Request . Path . Value ? . Split ( '?' ) . First ( )
35- , cluster . requiredData . ClusterInfo . ClusterSecret
35+ , cluster . requiredData . ClusterInfo . clusterSecret
3636 , s . FirstOrDefault ( )
3737 , e . FirstOrDefault ( )
3838 ) ;
@@ -68,7 +68,7 @@ public static async Task<FileAccessInfo> DownloadHash(HttpContext context, Clust
6868 context . Request . Query . TryGetValue ( "s" , out StringValues s ) ;
6969 context . Request . Query . TryGetValue ( "e" , out StringValues e ) ;
7070
71- bool isValid = Utils . CheckSign ( hash , cluster . clusterInfo . ClusterSecret , s . FirstOrDefault ( ) , e . FirstOrDefault ( ) ) ;
71+ bool isValid = Utils . CheckSign ( hash , cluster . clusterInfo . clusterSecret , s . FirstOrDefault ( ) , e . FirstOrDefault ( ) ) ;
7272
7373 if ( ! isValid )
7474 {
0 commit comments