Skip to content

Commit 2a05f94

Browse files
committed
еще маски сетей в sameip
1 parent a49b0e0 commit 2a05f94

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/main/scala/ru/org/linux/spring/SameIPController.scala

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 1998-2024 Linux.org.ru
2+
* Copyright 1998-2025 Linux.org.ru
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at
@@ -38,7 +38,14 @@ object SameIPController {
3838
class SameIPController(ipBlockDao: IPBlockDao, userService: UserService, userAgentDao: UserAgentDao, sameIpService: SameIpService) {
3939
@ModelAttribute("masks")
4040
def masks: util.List[(String, String)] =
41-
Seq("32" -> "Только IP", "24" -> "Сеть /24", "16" -> "Сеть /16", "0" -> "Любой IP").asJava
41+
Seq(
42+
"32" -> "Только IP",
43+
"24" -> "Сеть /24",
44+
"23" -> "Сеть /23",
45+
"22" -> "Сеть /22",
46+
"21" -> "Сеть /21",
47+
"16" -> "Сеть /16",
48+
"0" -> "Любой IP").asJava
4249

4350
@ModelAttribute("scores")
4451
def scores: util.List[(String, String)] =

0 commit comments

Comments
 (0)