Skip to content

Conversation

@dastgirp
Copy link
Member

@dastgirp dastgirp commented Jul 26, 2018

Pull Request Prelude

Changes Proposed

Char server will show proper message is IP is not allowed to connect.

Affected Branches:

Issues addressed:

#737

Known Issues and TODO List

@HerculesWSAPI
Copy link
Contributor

This change is Reviewable

@dastgirp dastgirp changed the base branch from stable to master July 26, 2018 05:55
@dastgirp dastgirp added type:enhancement Issue describes an enhancement or feature that should be implemented component:other Any issues that don't fall in the explicitly described components labels Jul 29, 2018
static int char_parse_fromlogin_connection_state(int fd)
{
if (RFIFOB(fd,2)) {
switch (RFIFOB(fd,2)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about adding a default: case here, to catch any other values (futureproofing, or customized login server error codes)?

… when IP is not allowed

Updated char-server to show proper error message.
Fixes HerculesWS#737

Signed-off-by: Haru <[email protected]>
@MishimaHaruna MishimaHaruna merged commit 034e470 into HerculesWS:master Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:other Any issues that don't fall in the explicitly described components type:enhancement Issue describes an enhancement or feature that should be implemented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants