-
Notifications
You must be signed in to change notification settings - Fork 22
Feat/login #324
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
base: master
Are you sure you want to change the base?
Feat/login #324
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine with a couple of nits commented.
SteamKit has flagged all previous proxy PR attempts as shady
. What would be the use cases for this if it was merged?
LogManager.addListener(new DefaultLogListener()); | ||
|
||
new SampleWebLogonNonce(args[0], args[1]).run(); | ||
Thread.sleep(1000000L); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is needed here. Once the client is finished, it should terminate instead of waiting a long time.
client.setProxy(proxy); | ||
client.run(); | ||
|
||
Thread.sleep(1000000L); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is needed here. Once the client is finished, it should terminate instead of waiting a long time.
|
||
|
||
/** | ||
* @author cap_qin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This an alias? Also date would be nice here.
Socket underlying = new Socket(new Proxy(Proxy.Type.SOCKS, proxy.address())); | ||
underlying.connect(endPoint,timeout); | ||
socket = underlying; | ||
// socket = factory.createSocket( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove block if no longer needed.
client = HttpClient(CIO) { | ||
install(WebSockets) { | ||
pingInterval = timeout.toDuration(DurationUnit.SECONDS) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
English comment is preferred to keep consistency.
logon.body.setAccountName(details.username); | ||
logon.body.setWebLogonNonce(details.webLogonNonce); | ||
logon.body.setClientOsType(EOSType.Web.code()); | ||
logon.body.setUiMode(4); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would EUIMode work here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will remove it, It's not necessary
Description
support login with webLogonNonce and connection with proxy
webLogonNonce login is more safe, it's once time token which can login account to connect steam server, you can get the webLogonNonce from
https://steamcommunity.com/chat/clientjstoken
proxy support is necessary I think, GC server recently give the more strict limit for ip, proxy is the better way to make connection with GC server
Checklist