Differences From Artifact [2044202797]:
- File src/OFTCPSocket+SOCKS5.m — part of check-in [e2f4c1283c] at 2012-12-15 23:31:17 on branch trunk — OFString: Improved API for getting C strings. (user: js, size: 2536) [annotate] [blame] [check-ins using]
To Artifact [52796c9ef4]:
- File
src/OFTCPSocket+SOCKS5.m
— part of check-in
[6bd1d03cc1]
at
2013-01-08 03:13:35
on branch trunk
— OFTCPSocket+SOCKS5: Don't send in native encoding.
There is no standard on which encoding to use for IDNs. Probably, it
would be best to encode them in Punycode before sending them over the
wire, but for now, we just hope the other end understands UTF-8. (user: js, size: 2400) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
49 50 51 52 53 54 55 | oldWriteBufferEnabled = [self writeBufferEnabled]; [self setWriteBufferEnabled: YES]; /* CONNECT request */ [self writeBuffer: request length: 4]; | | < | < | < | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | oldWriteBufferEnabled = [self writeBufferEnabled]; [self setWriteBufferEnabled: YES]; /* CONNECT request */ [self writeBuffer: request length: 4]; [self writeInt8: [host UTF8StringLength]]; [self writeBuffer: [host UTF8String] length: [host UTF8StringLength]]; [self writeBigEndianInt16: port]; [self flushWriteBuffer]; [self setWriteBufferEnabled: oldWriteBufferEnabled]; [self readIntoBuffer: reply exactLength: 4]; |
︙ | ︙ |