Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
47e35707
Commit
47e35707
authored
Oct 09, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
d6125cd9
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
90 deletions
+4
-90
mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/network/protocol/tim/TIMProtocol.kt
...otlin/net/mamoe/mirai/network/protocol/tim/TIMProtocol.kt
+3
-8
mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/network/protocol/tim/packet/login/Touch.kt
...et/mamoe/mirai/network/protocol/tim/packet/login/Touch.kt
+1
-1
mirai-core/src/jvmTest/kotlin/data.txxt
mirai-core/src/jvmTest/kotlin/data.txxt
+0
-81
No files found.
mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/network/protocol/tim/TIMProtocol.kt
View file @
47e35707
...
@@ -14,7 +14,7 @@ import java.util.stream.Collectors
...
@@ -14,7 +14,7 @@ import java.util.stream.Collectors
* @author Him188moe
* @author Him188moe
*/
*/
object
TIMProtocol
{
object
TIMProtocol
{
val
SERVER_IP
:
List
<
String
>
by
lazy
{
val
SERVER_IP
:
List
<
String
>
=
{
//add("183.60.56.29")
//add("183.60.56.29")
val
list
=
mutableListOf
<
String
>()
val
list
=
mutableListOf
<
String
>()
arrayOf
(
arrayOf
(
...
@@ -28,7 +28,7 @@ object TIMProtocol {
...
@@ -28,7 +28,7 @@ object TIMProtocol {
).
forEach
{
list
.
add
(
InetAddress
.
getByName
(
it
).
hostAddress
)
}
).
forEach
{
list
.
add
(
InetAddress
.
getByName
(
it
).
hostAddress
)
}
list
.
toList
()
list
.
toList
()
}
}
()
const
val
head
=
"02"
const
val
head
=
"02"
const
val
ver
=
"37 13"
const
val
ver
=
"37 13"
...
@@ -40,13 +40,8 @@ object TIMProtocol {
...
@@ -40,13 +40,8 @@ object TIMProtocol {
const
val
fixVer2
=
"02 00 00 00 01 01 01 00 00 68 20"
const
val
fixVer2
=
"02 00 00 00 01 01 01 00 00 68 20"
// 02 38 03 00 CD 48 68 3E 03 3F A2 02 00 00 00
// 02 38 03 00 CD 48 68 3E 03 3F A2 02 00 00 00
// 02 00 00 00 01 2E 01 00 00 69 35
// 02 00 00 00 01 2E 01 00 00 69 35
/**
* 0825data1
*/
const
val
constantData1
=
"00 18 00 16 00 01 "
const
val
constantData1
=
"00 18 00 16 00 01 "
/**
* 0825data2
*/
const
val
constantData2
=
"00 00 04 53 00 00 00 01 00 00 15 85 "
const
val
constantData2
=
"00 00 04 53 00 00 00 01 00 00 15 85 "
/**
/**
...
...
mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/network/protocol/tim/packet/login/Touch.kt
View file @
47e35707
...
@@ -8,7 +8,7 @@ import java.io.DataInputStream
...
@@ -8,7 +8,7 @@ import java.io.DataInputStream
import
java.io.IOException
import
java.io.IOException
/**
/**
*
A
packet received when logging in, used to redirect server address
*
The
packet received when logging in, used to redirect server address
*
*
* @see ClientServerRedirectionPacket
* @see ClientServerRedirectionPacket
* @see ClientPasswordSubmissionPacket
* @see ClientPasswordSubmissionPacket
...
...
mirai-core/src/jvmTest/kotlin/data.txxt
deleted
100644 → 0
View file @
d6125cd9
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment