Commit Graph

5514 Commits

Author SHA1 Message Date
ArchiBot
cf9b90a73c Automatic translations update 2021-08-15 02:07:03 +00:00
Archi
dff549bd27 Misc 2021-08-13 23:34:44 +02:00
Łukasz Domeradzki
bb513921f1 Include ASF's windows-only parts only in generic and windows builds (#2404)
* Include ASF's windows-only parts only in generic and windows builds

* Apply Abry's note
2021-08-13 23:07:17 +02:00
ArchiBot
4fd411fd56 Automatic translations update 2021-08-12 02:07:58 +00:00
Archi
e3711dde26 Handle LimitExceeded in SendMessagePart()
Thanks ArchiBot
2021-08-11 20:54:10 +02:00
Archi
b3d1f96824 Misc
> This call site is reachable on: 'FreeBSD', 'Linux', 'MacOS'. 'OS.UnixSetFileAccess(string, OS.EUnixPermission)' is only supported on: 'Linux', 'FreeBSD', 'OSX'.
2021-08-10 17:37:18 +02:00
Archi
de0ee3a497 Make use of latest Madness 1.1.0 features 2021-08-10 17:09:46 +02:00
Łukasz Domeradzki
f403e9c296 Better April Fools (#2401)
* Better April Fools

* Guard timer with lock

It's not thread-safe

* Address Abry note

* Add extra 100ms to the timer calculation
2021-08-10 11:43:36 +02:00
Archi
46b2376849 Mark JetBrains.Annotations as private asset
Madness research shows that this doesn't need dll inclusion
2021-08-08 12:51:38 +02:00
Archi
911680d606 Remove IndexRange from explicit dependencies
Madness implicitly includes it already
2021-08-07 14:08:06 +02:00
Łukasz Domeradzki
9f281c6055 Embrace madness (#2394)
* Embrace madness

* Remove unused code

* Misc

* Address Abry's note

* Update for Madness 0.3.0
2021-08-07 14:03:46 +02:00
Archi
a9fd774988 Decrease netf code burden with SupportedOSPlatform 2021-08-05 21:31:12 +02:00
Archi
4eb4bc98ed Annotate remaining OS-specific parts of OS.cs 2021-08-05 21:24:23 +02:00
Archi
aa7fce300d Use new OperatingSystem API for OS detection
Supporting netf gets harder every day...
2021-08-05 21:17:42 +02:00
Vitaliya
8cd57efe33 Don't serialize AdditionalProperties for Asset (#2393)
* Don't serialize AdditionalProperties for Asset

* Don't serialize additional properties in InventoryResponse as well
2021-08-05 00:31:37 +02:00
Archi
a1955bc881 Mark additional stuff for removal 2021-08-02 22:15:37 +02:00
Archi
93a8af71e9 Limit HashCode compatibility helper to netf 2021-08-02 21:51:21 +02:00
Archi
929d57709a Remove obsolete properties 2021-08-02 21:45:04 +02:00
ArchiBot
4ac2774eaf Automatic translations update 2021-08-01 02:13:36 +00:00
Archi
b853bf0cf6 Back to sha1
Full sign doesn't work with sha256 (sad)
2021-07-31 19:19:32 +02:00
Archi
b3f490c328 Fix debug builds and use SHA256 public key 2021-07-31 18:47:18 +02:00
Archi
2be8a8b2a8 Avoid a potential synchronous flush when serializing api authentication middleware response
Might result in something along:

2021-07-30 16:39:43|ArchiSteamFarm-6766|ERROR|Microsoft.AspNetCore.Server.Kestrel|Connection id "0HMAJF2E5IVHB", Request id "0HMAJF2E5IVHB:00000005": An unhandled exception was thrown by the application. System.InvalidOperationException: Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream.Flush()
   at Microsoft.AspNetCore.ResponseCaching.ResponseCachingStream.Flush()
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionBody.Flush()
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.Dispose(Boolean disposing)
   at System.IO.StreamWriter.Close()
   at Newtonsoft.Json.JsonTextWriter.CloseBufferAndWriter()
   at Newtonsoft.Json.JsonTextWriter.Close()
   at Newtonsoft.Json.JsonWriter.Dispose(Boolean disposing)
   at Newtonsoft.Json.JsonWriter.System.IDisposable.Dispose()
   at ArchiSteamFarm.IPC.WebUtilities.WriteJsonAsync[TValue](HttpResponse response, TValue value, JsonSerializerSettings jsonSerializerSettings)
   at ArchiSteamFarm.IPC.WebUtilities.WriteJsonAsync[TValue](HttpResponse response, TValue value, JsonSerializerSettings jsonSerializerSettings)
   at ArchiSteamFarm.IPC.Integration.ApiAuthenticationMiddleware.InvokeAsync(HttpContext context, IOptions`1 jsonOptions)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
2021-07-30 20:54:52 +02:00
Archi
0b32862efe Use 4096-bit private key for public sign 2021-07-30 16:19:52 +02:00
Archi
77d34a2ac8 Enable public signing of ASF binaries
Pending tests whether this is going to have any drawbacks, but so far looks good
2021-07-30 16:09:46 +02:00
renovate[bot]
97a5a94220 Update dependency SteamKit2 to v2.4.0-Alpha.3 (#2392)
* Update dependency SteamKit2 to v2.4.0-Alpha.3

* Address SK2 breaking changes

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Archi <JustArchi@JustArchi.net>
2021-07-30 15:33:29 +02:00
Sebastian Göls
5cbc25c44e Fix command mabadd working incorrectly (#2390)
* Fix command mabadd working incorrectly

* Do the same for mabrm
2021-07-28 22:43:17 +02:00
ArchiBot
9811d5973b Automatic translations update 2021-07-28 02:11:59 +00:00
Archi
1df9c6290b Misc 2021-07-27 20:28:33 +02:00
ArchiBot
98c18756c5 Automatic translations update 2021-07-26 02:11:26 +00:00
Archi
0e2510528b Cleanup program initialization
Initial string[] args actually can't be null according to MSDN
2021-07-26 00:19:09 +02:00
Archi
ead2d460f5 Make program args case-insensitive
There is no good reason why it should be case-sensitive
2021-07-25 23:50:02 +02:00
Archi
21c3e4a1a3 Refuse to handle Resart() when in --no-restart mode
While AutoRestart property in the config is a hint for ASF what it should be doing, --no-restart cmd-line argument is used in scripts and environments that must directly monitor the process, e.g. Docker. In such environments, we should refuse a call to Restart() action, as it's never feasible.
2021-07-25 23:35:56 +02:00
Archi
6e285178d4 Misc 2021-07-23 20:35:48 +02:00
Archi
7ff747fb6e Misc 2021-07-23 17:05:43 +02:00
Sebastian Göls
4b7edf388c Fix GlobalConfig update via IPC removing IPCPassword (#2379) 2021-07-23 16:54:20 +02:00
Archi
859d2d54c6 Misc 2021-07-21 09:58:09 +02:00
ArchiBot
2533b05ede Automatic translations update 2021-07-21 02:11:34 +00:00
Archi
a92c212a69 Misc 2021-07-20 14:43:16 +02:00
Archi
1b3ef7a41d Add support for supplying additional information on 401/403 status codes
In particular permanent: true/false value indicating whether 403 comes from rate limiting or ASF block due to lack of IPCPassword
2021-07-20 14:32:53 +02:00
Łukasz Domeradzki
81eb5c2b7c Update Strings.resx 2021-07-20 11:40:11 +02:00
Archi
5d5baca72e Include more information as program identifier and user-agent 2021-07-19 14:37:58 +02:00
ArchiBot
b5396ae7d4 Automatic translations update 2021-07-18 02:08:47 +00:00
Archi
37689f4de6 Misc XML cleanup 2021-07-15 23:06:16 +02:00
ArchiBot
dd8fd251cc Automatic translations update 2021-07-14 02:08:07 +00:00
ArchiBot
6aef4ad5ed Automatic translations update 2021-07-13 02:10:08 +00:00
Archi
d479eb9f97 Address Rider EAP inspections/cleanup 2021-07-12 21:45:17 +02:00
Łukasz Domeradzki
13e9f1ac2a Closes #2371 (#2372)
* Closes #2371

* Change the default to no known networks

* Address @Vital7 note

* Handle both IPv4 and IPv6 when mapped

This follows ASP.NET Core logic

* Refactor forwarded headers usage
2021-07-12 13:40:23 +02:00
ArchiBot
a049c92c23 Automatic translations update 2021-07-11 02:10:55 +00:00
Archi
5d9bb8f2bb Include ASF's license in output of the build 2021-07-11 01:56:44 +02:00
Vitaliya
fd4c1ef59b Use ArchiHandler to fetch owned games (#2370)
* Use ArchiHandler to fetch owned games

* Mark deprecated methods with Obsolete attribute
2021-07-10 17:31:48 +02:00