mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing that ClientHostAddressAccessor failed in a background task
This was the case e.g. when roles were modified in a background task with Audit Trail trying to record the event
This commit is contained in:
@@ -230,6 +230,12 @@ namespace Orchard.Mvc {
|
||||
}
|
||||
}
|
||||
|
||||
public override string UserHostAddress {
|
||||
get {
|
||||
return "127.0.0.1";
|
||||
}
|
||||
}
|
||||
|
||||
public override HttpBrowserCapabilitiesBase Browser {
|
||||
get {
|
||||
return new HttpBrowserCapabilitiesPlaceholder();
|
||||
|
Reference in New Issue
Block a user