Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug proxy #283

Open
RobotXX1 opened this issue Mar 15, 2022 · 1 comment
Open

fix bug proxy #283

RobotXX1 opened this issue Mar 15, 2022 · 1 comment

Comments

@RobotXX1
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/steamcommunity/components/confirmations.js b/node_modules/steamcommunity/components/confirmations.js
index 8c2a579..cdc1d73 100644
--- a/node_modules/steamcommunity/components/confirmations.js
+++ b/node_modules/steamcommunity/components/confirmations.js
@@ -160,7 +160,7 @@ SteamCommunity.prototype.acceptConfirmationForObject = function(identitySecret,
 		// time offset is already known and saved
 		doConfirmation();
 	} else {
-		SteamTotp.getTimeOffset(function(err, offset) {
+		SteamTotp.getTimeOffset(self._options.httpProxy, function(err, offset) {
 			if (err) {
 				callback(err);
 				return;
diff --git a/node_modules/steamcommunity/components/twofactor.js b/node_modules/steamcommunity/components/twofactor.js
index 651c691..d28b064 100644
--- a/node_modules/steamcommunity/components/twofactor.js
+++ b/node_modules/steamcommunity/components/twofactor.js
@@ -61,7 +61,7 @@ SteamCommunity.prototype.finalizeTwoFactor = function(secret, activationCode, ca
 			return;
 		}
 
-		SteamTotp.getTimeOffset(function(err, offset, latency) {
+		SteamTotp.getTimeOffset(self._options.httpProxy, function(err, offset, latency) {
 			if (err) {
 				callback(err);
 				return;

This issue body was partially generated by patch-package.

@n1lsik
Copy link

n1lsik commented Apr 12, 2022

Tell me please before that there was an IP address leak?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants