Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 4cf1cc1

Browse files
committed
fix a bug that a server with empty remark prevents oksaving.
1 parent 51374a7 commit 4cf1cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

V2RayX/ServerProfile.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ - (NSDictionary*)dictionaryForm {
3434
@"port": [NSNumber numberWithInteger:port],
3535
@"userId": userId,
3636
@"alterId": [NSNumber numberWithInteger:alterId],
37-
@"remark": remark,
37+
@"remark": remark != nil ? remark : @"",
3838
@"allowPassive": allowPassive,
3939
@"useMkcp": useMkcp};
4040
}

0 commit comments

Comments
 (0)