We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbec091 commit 88f247bCopy full SHA for 88f247b
lib/device/sio/network.cpp
@@ -122,9 +122,22 @@ void sioNetwork::sio_open()
122
123
// persist aux1/aux2 values - NOTHING USES THEM!
124
open_aux1 = cmdFrame.aux1;
125
- open_aux2 = cmdFrame.aux2;
126
- open_aux2 |= trans_aux2;
127
- cmdFrame.aux2 |= trans_aux2;
+
+ // Ignore aux2 value if NTRANS set 0xFF, for ACTION!
+ if (trans_aux2 == 0xFF)
128
+ {
129
+ open_aux2 = cmdFrame.aux2 = 0;
130
+ }
131
+ else if (cmdFrame.aux1 == 6) // don't xlate dir listings.
132
133
+ open_aux2 = cmdFrame.aux2;
134
135
+ else
136
137
138
+ open_aux2 |= trans_aux2;
139
+ cmdFrame.aux2 |= trans_aux2;
140
141
142
// Shut down protocol if we are sending another open before we close.
143
if (protocol != nullptr)
0 commit comments